udp_proxy.py 文件源码

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

项目:packet-queue 作者: google 项目源码 文件源码
def configure(port, proxy_port, pipes):
  """Starts a UDP proxy server on localhost.

  Returns the proxy port number, which is the same as the proxy_port param
  unless zero is passed in.
  """
  server = ProxyServer(port, pipes)
  port = reactor.listenUDP(proxy_port, server.udp)
  return port.getHost().port
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号