legion.py 文件源码

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

项目:Legion 作者: MooseDojo 项目源码 文件源码
def testConnection(self, neighbor):
        sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        result = sock.connect_ex((neighbor.ip,neighbor.port))
        if result == 0:
            return True
        else:
            return False

    # test to see if we can still communicate to our neighbors
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号