whosonline/netcheck.py
def arping(ip_address, interface):
    '''use arping shell command to determine if device behind ip-address is
    online. sends ethernet frames which should not be dropped by firewalls.'''
    # send 5 packets and wait for a maximum of 5 seconds for the response
    command = "arping -c 5 -w 5 -I " + interface + "  " + ip_address
    returncode, output = safe_syscall(command.split())
    if returncode == 0:
        return True
    else:
        return False
use arping shell command to determine if device behind ip-address is
    online. sends ethernet frames which should not be dropped by firewalls.
use arping shell command to determine if device behind ip-address is
online. sends ethernet frames which should not be dropped by firewalls.
use arping shell command to determine if device behind ip - address is online . sends ethernet frames which should not be dropped by firewalls .
def arping(ip_address, interface):
    command = "arping -c 5 -w 5 -I " + interface + "  " + ip_address
    returncode, output = safe_syscall(command.split())
    if returncode == 0:
        return True
    else:
        return False
def arping ( ip_address , interface ) : command = "arping -c 5 -w 5 -I " + interface + "  " + ip_address returncode , output = safe_syscall ( command . split ( ) ) if returncode == 0 : return True else : return False
use arping shell command to determine if device behind ip-address is
online.
use arping shell command to determine if device behind ip - address is online .
'''use arping shell command to determine if device behind ip-address is
    online. sends ethernet frames which should not be dropped by firewalls.''' # send 5 packets and wait for a maximum of 5 seconds for the response
ip_address
interface