buildroot/support/testing/tests/package/sample_python_twisted.py

10 lines
172 B
Python

from twisted.internet import protocol, reactor, endpoints
class F(protocol.Factory):
pass
endpoints.serverFromString(reactor, "tcp:1234").listen(F())
reactor.run()