GPRS specific realization of the MAbstractPinger interface.
Inheritance:
Public Methods
-
CGPRSPinger(const std::string& aAddress)
- Constructor.
-
bool Ping()
- Checks if a remote device is in range.
-
const std::string& GetAddress()
- Returns remote device's GPRS address.
-
bool InRange()
- Tells whether a device is in range or not.
-
u_short in_cksum(u_short* addr, int len)
- Calculates the checksum for ICMP header.
Documentation
GPRS specific realization of the MAbstartactPinger interface.
Pinging is done by sending the ECHO messages. If there's no response
in one seconds time then the remote device is assumed to be out of range.
CGPRSPinger(const std::string& aAddress)
-
Constructor, initializes the pinger object so that it can be used
immediately after the construction has finished.
- Parameters:
- aAddress - Remote device's address.
- Returns:
- none
bool Ping()
-
Checks if a remote device is in range. The check is done by sending
the ECHO request. If a response isn't received during one second then the
remote device is assumed to be out of range.
- Returns:
- true if the remote device is in range, otherwise false
const std::string& GetAddress()
-
Return the GPRS address of the device under monitoring.
- Returns:
- remote device's address
bool InRange()
-
Tells whether a device is in range or not.
- Returns:
- true if the device is in range
u_short in_cksum(u_short* addr, int len)
-
Calculates the checksum for ICMP header.
- Returns:
- checksum
- This class has no child classes.
- See Also:
- MAbstractPinger
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.