华子的代码空间

逆水行舟,不进则退。 关注系统编程、网络编程、并发、分布式。

2013年2月27日

Twisted echo server

摘要: 1 #!/usr/bin/env python 2 import sys 3 4 if 'linux' in sys.platform: 5 from twisted.internet import epollreactor 6 try: 7 epollreactor.install() 8 print "EPOLL Reactor installed." 9 except:10 pass11 elif 'win' in sys.platform:12 from twisted.internet import ... 阅读全文

posted @ 2013-02-27 14:04 华子的代码空间 阅读(459) 评论(0) 推荐(0) 编辑

导航