1 from twisted.internet import protocol, reactor
2 from twisted.protocols import basic
4 class FingerProtocol(basic.LineReceiver):
5 def lineReceived(self, user):
6 self.transport.write("No such user\r\n")
7 self.transport.loseConnection()
9 class FingerFactory(protocol.ServerFactory):
10 protocol = FingerProtocol
12 reactor.listenTCP(1079, FingerFactory())