Subject: How to send messages to multiple login clients w/ same jabber id's
Hi,
i really had fun in xmpp library,because it is very extensible..currently,i am developing a client that can multiple login with the same jabber id's.i left the resource property to Null.so, the server will assign a random resource for it.
Ex:Receiver Ex:Sender
Login 1:smith@dbvismin2/resource1 Login 1:john@dbvismin2/resource4
Login 2:smith@dbvismin2/resource2 Login 2:john@dbvismin2/resource5
Login 3:smith@dbvismin2/resource3 Login 3:john@dbvismin2/resource6
Now,im with this logic that if JOHN@dbvismin2/resource4 send a message to SMITH@dbvismin2/resource1 and then JOHN first checks if SMITH is not busy.if smith is busy.then john will try to send the message to the other clients (smith w/ resource2 or smith w/ resource3).
lets say,smith is busy.so,john send the message to other 2 clients.lets say,to smith@dbvismin2/resource2 same logic it first check it is not busy..if not.then accept the message..now,smith with resource2 and john with resource4 will now communicating each other..how can i do this?.i try this scenario and the receiver who received the message was smith who login last..is this possible to happen?..pls shed a light with this..give some hint or sample code to do this...
many thanks.
i really had fun in xmpp library,because it is very extensible..currently,i am developing a client that can multiple login with the same jabber id's.i left the resource property to Null.so, the server will assign a random resource for it.
Ex:Receiver Ex:Sender
Login 1:smith@dbvismin2/resource1 Login 1:john@dbvismin2/resource4
Login 2:smith@dbvismin2/resource2 Login 2:john@dbvismin2/resource5
Login 3:smith@dbvismin2/resource3 Login 3:john@dbvismin2/resource6
Now,im with this logic that if JOHN@dbvismin2/resource4 send a message to SMITH@dbvismin2/resource1 and then JOHN first checks if SMITH is not busy.if smith is busy.then john will try to send the message to the other clients (smith w/ resource2 or smith w/ resource3).
lets say,smith is busy.so,john send the message to other 2 clients.lets say,to smith@dbvismin2/resource2 same logic it first check it is not busy..if not.then accept the message..now,smith with resource2 and john with resource4 will now communicating each other..how can i do this?.i try this scenario and the receiver who received the message was smith who login last..is this possible to happen?..pls shed a light with this..give some hint or sample code to do this...
many thanks.