📄 server.py
字号:
# This file is part of MANTIS OS, Operating System# See http://mantis.cs.colorado.edu/## Copyright (C) 2003-2005 University of Colorado, Boulder## This program is free software; you can redistribute it and/or# modify it under the terms of the mos license (see file LICENSE)from twisted.spread import pbfrom twisted.internet import reactorclass radio_model(pb.Root): def remote_register(self, node_id): print 'registering: ', node_id returnif __name__ == '__main__': reactor.listenTCP(1529, pb.PBServerFactory(radio_model())) reactor.run()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -