xref: /OK3568_Linux_fs/buildroot/support/testing/tests/package/sample_python_twisted.py (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1from twisted.internet import protocol, reactor, endpoints
2
3
4class F(protocol.Factory):
5    pass
6
7
8endpoints.serverFromString(reactor, "tcp:1234").listen(F())
9reactor.run()
10