コード例 #1
0
 def _call_upnp(port):
     # start messing with upnp settings
     # success can be false if you're behind a router that doesn't support upnp
     # or if you are not behind a router at all and have an external ip address
     shutdowner.A('block')
     success, port = run_upnpc.update(port)
     shutdowner.A('unblock')
     return (success, port)
コード例 #2
0
ファイル: p2p_connector.py プロジェクト: vesellov/datahaven
 def _run_upnpc(port):
     shutdowner.A('block')
     run_upnpc.update(port)
     shutdowner.A('unblock')