python的ip信使库
ipymessenger的Python项目详细描述
用于IP messenger的库。
如何使用
# username, group name, port(default 2524) ip = IpmsgServer("denzow", "denzow_group", 2721) # start server ip.start() # send message packet_no = ip.send_message("192.168.1.xx", "hello") # check succeed?( should wait some seconds.) ip.check_sended_message(packet_no) # get host info testusers_info = ip.get_hostinfo_by_nickname("testuser") packet_no = ip.send_message(testusers_info.addr, "hello") # send message use nickname without ip addr packet_no = ip.send_message_by_nickname("", "hello") # send message use fuzzy nickname without ip addr packet_no = ip.send_message_by_fuzzy_nickname("", "hello") # stop server # wait stop thread and close socket. ip.stop()
限制
- 不要使用附加文件。
- 不加密
待办事项
- 发送机密消息
- 接收机密消息
- 通过getlist以外的其他方式正确注册hostinfo
- 当RCV BRXEXT删除主机列表。