def remote_connection_info(self):
"""
Returns a tuple of current address of 'this' server
if listening, then it is the listing server. If performing a
remote connection, then it is the address that was made in
a bind() call
If no connection has been established, the connection returns None.
"""
if self.socket is None:
return None
return (self._remote_addr, self._remote_port)
评论列表
文章目录