Subject: Implementing an IM server
Hi,
AS part of a project we need to implement an IM server using the agsXMPP SDK, so we decided to extend the server example.
Now our main problem is implementing the messages routing.
1. Can you please explain or give an example of how this should be done?
I think we have 2 options: one, if the 2 clients are registered to the same server (ours, in this case the server needs to send the msg to the other client), and the other, if they are registered to two differend servers (then our server needs to send the msg to the other server) .
2. how do we know to find the other client's/ server's socket to route the message to?
hope the questions are clear...
thanks
AS part of a project we need to implement an IM server using the agsXMPP SDK, so we decided to extend the server example.
Now our main problem is implementing the messages routing.
1. Can you please explain or give an example of how this should be done?
I think we have 2 options: one, if the 2 clients are registered to the same server (ours, in this case the server needs to send the msg to the other client), and the other, if they are registered to two differend servers (then our server needs to send the msg to the other server) .
2. how do we know to find the other client's/ server's socket to route the message to?
hope the questions are clear...

thanks