|
我学习写了一个十分简单的聊天服务器,使用的客户端是telnet,运的时候出现报错(ps:现在还没有找到什么原因):error: uncaptured python exception, closing channel <__main__.ChatServer listening :5005 at 0x25d2e88> (<type 'exceptions.AttributeError'>:ChatServer instance has no attribute 'name' [C:\Python27\lib\asyncore.py|read|83] [C:\Python27\lib\asyncore.py|handle_read_event|443] [C:/Users/Administrator/PycharmProjects/untitled2/niuken/xuni_xxl/simple_chat.py|handle_accept|59] [C:/Users/Administrator/PycharmProjects/untitled2/niuken/xuni_xxl/simple_chat.py|__init__|29] [C:\Python27\lib\asyncore.py|__getattr__|421])
求论坛中大神能够多多指教!!谢谢!!
|
|