Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: in_sock.h

Class TSoInetIfQuery

class TSoInetIfQuery;

Description

Interface query.

Used with interface query options:

Only GetOption for KSolInetIfQuery is supported. It returns information about the selected interface. The option name determines the input field in the TSoInetIfQuery, which is used as a key for locating the interface.

Returns, KErrNotFound, if interface is not found

Returns, KErrNone, if interface is located, and fills fields from the interface with following logic

For example, if QueryByDstAddr for specified destination address results iIsUp == 1, then there is an interface and route for that destination. iIsUp == 0, means that trying to connect to the address will most likely activate a netdial/interface link startup phase.

Members

Defined in TSoInetIfQuery:
iDstAddr, iIndex, iIsUp, iName, iSrcAddr, iZone


Member data


iDstAddr

TInetAddr iDstAddr;

Description

Destination address.

Note: On returning interface information, regardless of the option used, the content of this is used to select a matching source address (iSrcAddr).


iSrcAddr

TInetAddr iSrcAddr;

Description

Source address.


iIndex

TUint32 iIndex;

Description

Interface Index.


iName

TName iName;

Description

Interface name.


iIsUp

TUint iIsUp;

Description

Flag that is set to 1 if the network interface is attached.


iZone

TInetScopeIds iZone;

Description

Scope Id Vector (iZone[0] = Interface Index, iZone[1] = IAP ID, iZone[15] = Network ID).