Error information for TCP/IP protocols.
An object of this class is returned packaged as a TPckgBuf<TSoInetLastErr> in the option argument of RSocket::GetOpt(), when this function is called with (KSolInetIp, KSoInetLastError). The data members of this object are updated whenever a packet carrying an ICMP message is received.
- Note
- This class is originally defined only for the IPv4 environment, and there is no definite way of knowing whether the fields iErrType and iErrCode contain ICMPv4 or ICMPv6 codes. A solution that will give the correct answer in most normal cases, is
else
IMPORT_C TBool IsV4Mapped() const
Tests if this address is an IPv4-mapped address.
Error information for TCP/IP protocols.
TInetAddr iErrAddr
A TInetAddr with the IP address set to the address of the host that generated the error.
IMPORT_C TUint Family() const
Gets the address family and thereby the type of address.
const TUint KAfInet
Identifies the TCP/IP protocol family and v4 address family.
Alternatively, the error can be interpreted based on the member variable iStatus, if it contains one of the extended error codes. These are are common for both IPv4 and IPv6.
- API status
- Published to all clients. Released API.
Definition at line 2011 of file in_sock.h.