Example #1
0
 def start(self):
     socket = RxP(self.loglevel)
     socket.listen("127.0.0.1", self.port)
     connection = socket.accept()
     t = Thread(target=self.handle_client, args=(connection,))
     self.connected_client = connection
     t.start()
Example #2
0
 def connect(self):
     socket = RxP(self.loglevel)
     conn = socket.connect("127.0.0.1", self.bindport, self.destip, self.destport, self.connect_listener)
     self.logger.debug("Connection process started")
     return conn