This class is useful to perform ICMP echo checks (pinging) on the party of your interest. It may be used as well to check LAN-adapters against 3rd parties.
More...
Public Member Functions |
| ACE_Ping_Socket (void) |
| Default constructor.
|
| ACE_Ping_Socket (ACE_Addr const &local, int protocol=IPPROTO_ICMP, int reuse_addr=0) |
| ~ACE_Ping_Socket (void) |
| Destructor.
|
int | open (ACE_Addr const &local=ACE_Addr::sap_any, int protocol=IPPROTO_ICMP, int reuse_addr=0) |
| Wrapper around the BSD-style socket system call (no QoS).
|
int | send_echo_check (ACE_INET_Addr &remote_addr, bool to_connect=false) |
| to_connect = true - makes connect to remote address
|
int | process_incoming_dgram (char *ptr, ssize_t len) |
int | make_echo_check (ACE_INET_Addr &remote_addr, bool to_connect=false, ACE_Time_Value const *timeout=&time_default_) |
| to_connect = true - makes connect to remote address
|
char * | icmp_recv_buff (void) |
void | dump (void) const |
| Dump the state of an object.
|
ssize_t | send (void const *buf, size_t n, ACE_Addr const &addr, int flags=0) const |
ssize_t | recv (void *buf, size_t n, ACE_Addr &addr, int flags=0) const |
ssize_t | recv (void *buf, size_t n, int flags, ACE_Time_Value const *timeout) const |
| TODO: comment.
|
int | set_option (int level, int option, void *optval, int optlen) const |
| Wrapper around the setsockopt system call.
|
int | get_option (int level, int option, void *optval, int *optlen) const |
| Wrapper around the getsockopt system call.
|
int | close (void) |
int | get_local_addr (ACE_Addr &) const |
int | get_remote_addr (ACE_Addr &) const |
int | open (int type, int protocol_family, int protocol, int reuse_addr) |
| Wrapper around the BSD-style socket system call (no QoS).
|
int | open (int type, int protocol_family, int protocol, ACE_Protocol_Info *protocolinfo, ACE_SOCK_GROUP g, u_long flags, int reuse_addr) |
| Wrapper around the QoS-enabled WSASocket function.
|
int | control (int cmd, void *) const |
| Interface for <ioctl>.
|
int | enable (int value) const |
int | disable (int value) const |
ACE_HANDLE | get_handle (void) const |
| Get the underlying handle.
|
void | set_handle (ACE_HANDLE handle) |
| Set the underlying handle.
|
Additional Inherited Members |
| ACE_ICMP_Socket (void) |
| Default constructor.
|
| ACE_ICMP_Socket (ACE_Addr const &local, int protocol=IPPROTO_ICMP, int reuse_addr=0) |
| Constructor that takes a local listening address.
|
int | shared_open (ACE_Addr const &local) |
| Wrapper around BSD-style bind system call.
|
unsigned short | calculate_checksum (unsigned short *paddress, int len) |
| Calculates check-sum.
|
| ACE_SOCK (int type, int protocol_family, int protocol=0, int reuse_addr=0) |
| ACE_SOCK (int type, int protocol_family, int protocol, ACE_Protocol_Info *protocolinfo, ACE_SOCK_GROUP g, u_long flags, int reuse_addr) |
| ACE_SOCK (void) |
| ~ACE_SOCK (void) |
| Protected destructor.
|
| ACE_IPC_SAP (void) |
| Default constructor.
|
| ~ACE_IPC_SAP (void) |
| Protected destructor.
|
This class is useful to perform ICMP echo checks (pinging) on the party of your interest. It may be used as well to check LAN-adapters against 3rd parties.