Exemplo n.º 1
0
 def clientConnectionSucceeded(self, protocol):
     # if this is our outgoing protocol, send our message
     if protocol == self.outgoingProtocol:
         msg = protocol.write_request(self.data, "TCP", self.port)
         protocol.sendString(msg)
     # otherwise, wait for them to send a message and we'll handle it
     else:
         pass
Exemplo n.º 2
0
 def clientConnectionSucceeded(self, protocol):
     #if this is our outgoing protocol, send our message
     if protocol == self.outgoingProtocol:
         msg = protocol.write_request(self.data, "TCP", self.port)
         protocol.sendString(msg)
     #otherwise, wait for them to send a message and we'll handle it
     else:
         pass
Exemplo n.º 3
0
 def clientConnectionSucceeded(self, protocol):
     msg = protocol.write_request(self.data, "TCP_reply", self.port)
     protocol.sendString(msg)
Exemplo n.º 4
0
 def clientConnectionSucceeded(self, protocol):
     msg = protocol.write_request(self.data, "TCP_reply", self.port)
     protocol.sendString(msg)