Smack运用Openfire的广播功能

Smack使用Openfire的广播功能Connection connection new XMPPConnection(localhost)connection.conne

Smack使用Openfire的广播功能

Connection connection = new XMPPConnection("localhost");connection.connect();connection.login("admin", "123");Message m = new Message("all@broadcast.pc-20110603jqqc");m.setBody("this is a broadcast.");connection.sendPacket(m);
?