udp_proxy.py 文件源码

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

项目:packet-queue 作者: google 项目源码 文件源码
def _GetProxyClient(self, address):
    """Gets a proxy client for a given client address.

    Returns the new proxy client, or an existing one if the address has been
    used before.
    """
    if address in self.proxy_clients:
      proxy_client = self.proxy_clients[address]
    else:
      proxy_client = ProxyClient(self, address)
      self.proxy_clients[address] = proxy_client
      reactor.listenUDP(0, proxy_client.udp)

    return proxy_client
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号