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();
热门推荐
6 破五祝福语简短的
10 退休后祝福语简短护士
11 祝福语签名简短霸气女生
12 放假假期祝福语简短精辟
13 过年送礼祝福语简短精辟
14 小学同学简短祝福语
15 康复儿童六一祝福语简短
16 毕业祝福语老婆生日简短
17 考进高中祝福语简短
18 孩子满月红包祝福语简短