class CWLANPinger

WLAN specific realization of the MAbstractPinger interface.

Inheritance:


Public Methods

[more] CWLANPinger(const std::string& aAddress)
Constructor.
[more]bool Ping()
Checks if a remote device is in range.
[more]const std::string& GetAddress()
Returns remote device's WLAN address.
[more]bool InRange()
Tells whether a device is in range or not.
[more]u_short in_cksum(u_short* addr, int len)
Calculates the checksum for ICMP header.


Inherited from MAbstractPinger:


Documentation

WLAN 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.

o CWLANPinger(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

obool 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

oconst std::string& GetAddress()
Return the WLAN address of the device under monitoring.

Returns:
remote device's address

obool InRange()
Tells whether a device is in range or not.

Returns:
true if the device is in range

ou_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++.