public Message getMessage(XMPPConnection con, String receiveId){
PacketFilter filter = new AndFilter(new PacketTypeFilter(Message.class),
new ToContainsFilter(receiveId + “@localhost”));
PacketCollector myCollector = con.createPacketCollector(filter);
Packet packet = myCollector.nextResult();
return msg;
}
I made method like above.
this method sets the user on waiting mode, and can get a message if sent.
I have question.
- How can I stop the waiting mode?
I’m trying quiting the method and call it again
whenever I link it to another site cause I have some trouble making frame.
I’d like to know if there is some other way.
-
How can I make a program which figures out whether specific user(who is not registered on the friend’s roster) is online or not?
-
Is it possible to get the all online users’ list who are logged on the server?