Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > efe60a74a55b1603654f3f258ba7199d > files > 2695

python3-twisted-19.2.1-1.1.mga7.armv7hl.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()