This class implements an ICMP socket.
Direct Base Classes: RawSocketImpl
Inherited Functions: acceptConnection, address, available, bind, bind6, checkBrokenTimeout, close, connect, connectNB, duplicate, error, fcntl, getBlocking, getBroadcast, getKeepAlive, getLinger, getNoDelay, getOOBInline, getOption, getRawOption, getReceiveBufferSize, getReceiveTimeout, getReuseAddress, getReusePort, getSendBufferSize, getSendTimeout, init, init2, initSocket, initialized, ioctl, lastError, listen, peerAddress, poll, receiveBytes, receiveFrom, referenceCount, release, reset, secure, sendBytes, sendTo, sendUrgent, setBlocking, setBroadcast, setKeepAlive, setLinger, setNoDelay, setOOBInline, setOption, setRawOption, setReceiveBufferSize, setReceiveTimeout, setReuseAddress, setReusePort, setSendBufferSize, setSendTimeout, shutdown, shutdownReceive, shutdownSend, socketError, sockfd
Creates an unconnected ICMP socket.
The socket will be created for the given address family.
int dataSize() const;
Returns the data size in bytes.
int packetSize() const;
Returns the packet size in bytes.
void * param383,
SocketAddress & address,
int flags = 0
Receives data from the socket. Stores the address of the sender in address.
Returns the time elapsed since the originating request was sent.
const void * param382,
const SocketAddress & address,
int flags = 0
Sends an ICMP request through the socket to the given address.
Returns the number of bytes sent.
int timeout() const;
Returns the socket timeout value.
int ttl() const;
Returns the Time-To-Live value.