codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
from twisted.application import internet, service from twisted.internet import protocol from twisted.spread import pb from amodule import aClass, RemoteClass, PBServer pb.setUnjellyableForClass(aClass, RemoteClass) application = service.Application("Test app") # Prepare managers clientManager = internet.TCPServer(8282, pb.PBServerFactory(PBServer())); clientManager.setServiceParent(application) if __name__ == '__main__': print "Run with twistd" import sys sys.exit(1)
Private
[
?
]
Run code
Submit