xmpp 连接和发送消息
例子
SleekXMPP(Python)
import sleekxmpp
client = sleekxmpp.Client("address@example.net", "password")
client.connect()
client.process(blocking=False)
client.send_message(mto="remote@example.net", mbody=self.msg)Smack(Java/Android)
XMPPTCPConnection connection = new XMPPTCPConnection("user", "password", "example.org")
connection.connect().login();
Message message = new Message("otheruser@example.net", "Hi, how are you?");
connection.sendStanza(message);
connection.disconnect();
热门推荐
10 38节贺卡简短祝福语
11 好朋友夫妻祝福语简短
12 我想找祝福语大全简短
13 年月日祝福语简短
14 元旦联谊祝福语简短精辟
15 送给老师中秋祝福语简短
16 给宝贝开学祝福语简短
17 祖国生日祝福语简短英文
18 婶婶生日贺词简短祝福语