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 发给导师的祝福语简短
11 入学校简短祝福语
12 收围巾的祝福语简短
13 欢天喜地盖新房祝福语简短
14 别人怀孕的简短祝福语
15 广东考试祝福语朋友简短
16 外国媳妇订婚祝福语简短
17 叶海燕老师祝福语简短
18 电力考试祝福语简短高级