def connect(self) -> BufferedIOBase:
    (conn, _) = self._socket.accept()
    self.file = conn.makefile('rwb')
    return self.file
def connect(self) -> BufferedIOBase:
    (conn, _) = self._socket.accept()
    self.file = conn.makefile('rwb')
    return self.file