Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 644 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 644 Bytes

cháofēng

A low-level telnet bbs server framework base on eventlet. It's made up with love and respect.

更多的文档点这里

Hello,World!

from chaofeng import Frame, Server

class HelloFrame(Frame):

def initialize(self):
    self.write('Hello,World!\r\n')
    self.pause()
    self.close()

if __name__ == '__main__' :
    s = Server(HelloFrame)
    s.run()

Test it!

git clone https://github.com/argolab/chaofeng.git
cd chaofeng
python test.py

In client:

telnet localhost 5000