コード例 #1
0
def manage_host(info):
    #log.addFilter(ConnLogFilter())
    sleep(
        5
    )  # prevent immediate waking after registration by backlogged in-flight ARP/TCP requests
    arp.handle(info['othermac'], info['addresses'], info['mymac'],
               info['myif'])  #+1 Thread.start() #handle grat-arps first
    tcp.handle(info['othermac'], info['addresses'],
               info['myif'])  #+1 Thread.start() #then L3 reqs
    mdns.handle(info['othermac'], info['records'])  #advertise last
コード例 #2
0
ファイル: manager.py プロジェクト: awein/SleepProxyServer
def manage_host(info):
    mdns.handle(info['othermac'], info['records'])
    arp.handle(info['othermac'], info['addresses'], info['mymac'], info['myif'])
    tcp.handle(info['othermac'], info['addresses'], info['myif'])
コード例 #3
0
ファイル: manager.py プロジェクト: kfix/SleepProxyServer
def manage_host(info):
    #log.addFilter(ConnLogFilter())
    sleep(5) # prevent immediate waking after registration by backlogged in-flight ARP/TCP requests 
    arp.handle(info['othermac'], info['addresses'], info['mymac'], info['myif']) #+1 Thread.start() #handle grat-arps first
    tcp.handle(info['othermac'], info['addresses'], info['myif']) #+1 Thread.start() #then L3 reqs
    mdns.handle(info['othermac'], info['records']) #advertise last
コード例 #4
0
def manage_host(info):
    mdns.handle(info['othermac'], info['records'])
    arp.handle(info['othermac'], info['addresses'], info['mymac'],
               info['myif'])
    tcp.handle(info['othermac'], info['addresses'], info['myif'])