Skip to content

A simple telnet bbs server framework for python.

Notifications You must be signed in to change notification settings

wizardcypress/chaofeng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cháofēng

Cháofēng is a simple telnet bbs framework for python

更多的文档写在wiki里.

Hello, world

Here is a simple example app for Chaofeng :

from chaofeng import Frame, Server
import chaofeng.ascii as c

class Hello(Frame):

    def initialize(self):
        self.write('Hello,World!')
        self.close()

    def clear(self):
        self.write('Don leave me alone ...\r\n')

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

作为服务器,你可以这样运行:

python /path-to-the-file/

作为客户端,你可以这样(在linux):

telnet host port

一般的,本地的host是填loaclhost,port是5000。所以如果服务器是本地的话,你可以:

telnet localhost 5000

About

A simple telnet bbs server framework for python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published