Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def transmitter():
transmitter = pingparsing.PingTransmitter()
transmitter.ping_option = "-i 0.2 -q"
transmitter.deadline = DEADLINE_TIME
return transmitter
def transmitter():
transmitter = pingparsing.PingTransmitter()
transmitter.ping_option = "-i 0.2 -q"
transmitter.deadline = DEADLINE_TIME
return transmitter
def transmitter():
transmitter = pingparsing.PingTransmitter()
transmitter.ping_option = "-i 0.2 -q"
transmitter.deadline = DEADLINE_TIME
return transmitter
def transmitter():
transmitter = pingparsing.PingTransmitter()
transmitter.ping_option = "-i 0.2 -q"
transmitter.deadline = DEADLINE_TIME
return transmitter
def transmitter():
transmitter = pingparsing.PingTransmitter()
transmitter.ping_option = "-i 0.2 -q"
transmitter.deadline = DEADLINE_TIME
return transmitter
def transmitter():
return PingTransmitter()
def ping(host: str) -> pingparsing.PingStats:
ping_parser = pingparsing.PingParsing()
transmitter = pingparsing.PingTransmitter()
transmitter.destination = host
transmitter.count = 2
transmitter.timeout = 2000
return ping_parser.parse(transmitter.ping())