def __init__(self, host, port, info): Handler.__init__(self) threading.Thread.__init__(self) self._host = host self._port = port self._info = info self._sock_host = None self._sock_port = 0 self._peer_host = None self._peer_port = 0 self._thread_stop = False self._peer_send_count = 0 self._peer_recv_count = 0 self._peer_state = '' self._socket = None
def __init__(self, host, port, info): self._clients = [] self._servers = [] self._manager = None self._host = host self._port = port self._info = info self._sock_host = None self._sock_port = 0 self._peer_host = None self._peer_port = 0 self._peer_send_count = 0 self._peer_recv_count = 0 self._thread_stop = False Handler.__init__(self) threading.Thread.__init__(self)