3
# Copyright (c) Twisted Matrix Laboratories.
4
# See LICENSE for details.
6
from twisted.internet.protocol import Protocol, Factory
7
from twisted.internet import reactor
9
### Protocol Implementation
11
# This is just about the simplest possible protocol
13
def dataReceived(self, data):
15
As soon as any data is received, write it back.
17
self.transport.write(data)
23
reactor.listenTCP(8000, f)
26
if __name__ == '__main__':