SocketBase.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:newsreap 作者: caronc 项目源码 文件源码
def local_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._local_addr, self._local_port)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号