UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
PrinterMonitor.PrinterUtil Class Reference

Static Public Member Functions

 ping (ip)
 To receive ICMP Echo Reply from given IP, if success return True, False otherwise.
 
 ping_responded (ip, timeout_secs)
 Pings a printer at the specified IP address and checks if it responds within the given timeout.
 
 ping_stopped_responding (ip, timeout_secs)
 Pings a printer at the specified IP address and checks if it stops responding within the given timeout.
 

Member Function Documentation

◆ ping()

PrinterMonitor.PrinterUtil.ping ( ip)
static

To receive ICMP Echo Reply from given IP, if success return True, False otherwise.

Parameters
ipIP address.

◆ ping_responded()

PrinterMonitor.PrinterUtil.ping_responded ( ip,
timeout_secs )
static

Pings a printer at the specified IP address and checks if it responds within the given timeout.

Parameters
ipThe IP address of the printer to ping.
timeout_secsThe timeout period in seconds.
Returns
YES if the printer responds within the timeout period, NO otherwise.

◆ ping_stopped_responding()

PrinterMonitor.PrinterUtil.ping_stopped_responding ( ip,
timeout_secs )
static

Pings a printer at the specified IP address and checks if it stops responding within the given timeout.

Parameters
ipThe IP address of the printer to ping.
timeout_secsThe timeout period in seconds.
Returns
YES if the printer stops responding within the timeout period, NO otherwise.

The documentation for this class was generated from the following file: