Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: in_sock.h
Link against:

Class TSoInetLastErr

TSoInetLastErr

Support

Supported from 5.0

Description

Encapsulates error information for TCP/IP protocols.

An object of this class is returned packaged as a TPckgBuf<TSoInetLastErr> in the anOption argument of RSocket::GetOpt(), when this function is called with anOptionLevel set to KSoInetLastError. The data members of this object are updated whenever a packet carrying an ICMP message is received.

Defined in TSoInetLastErr:
iDstAddr, iErrAddr, iErrCode, iErrType, iSrcAddr, iStatus


Data members


iStatus

TInt iStatus

Description

The error code returned by the last ESOCK API function called.


iErrType

TInt iErrType

Description

The value of the Type field of the last ICMP message.


iErrCode

TInt iErrCode

Description

The value of the Code field of the last ICMP message.


iSrcAddr

TInetAddr iSrcAddr

Description

A TInetAddr with the IP address and port set to the source address and port of the failed datagram.


iDstAddr

TInetAddr iDstAddr

Description

A TInetAddr with the IP address and port set to the destination address and port of the failed datagram.


iErrAddr

TInetAddr iErrAddr

Description

A TInetAddr with the IP address set to the address of the host that generated the error.