I have several questions looking for your answers as follows:
1. Since sip-communicator can support multi IM protocols, when it receives a
package, how can it tell which IM client to send to? according to the port
number? But as far as i know, sip-communicator should have just one port for
receiving msg. this is ok for sending msg to different IM clients 'coz it is
aware of which one to send to, but when msgs from different clients are
coming, how could it tell one from the others and is there any port mapping
or other mechanism to solve this problem?
2. I got the info on internet that nowadays most of IM software are based on
TCP connection. But TCP is a stream oriented transportion layer protocol,
which method in java could devide the stream into protocol package?
3. Now what i want to do is to unpack a package of protocol A, extract the
msg from it and pack it into a package of protocol B, to realize msg
transmission between different clients. I am wondering whether there is any
API in java that could help me do this.
thx alot if you guys could help me and good luck to all:)