Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > 09408f3c1571cbb746da49a1d2f22702 > files > 2734

python-twisted-17.5.0-1.mga6.x86_64.rpm

"""Throughput server."""

import sys

from twisted.protocols.wire import Discard
from twisted.internet import protocol, reactor
from twisted.python import log


def main():
    f = protocol.ServerFactory()
    f.protocol = Discard
    reactor.listenTCP(8000, f)
    reactor.run()


if __name__ == '__main__':
    main()