|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
Interface query. More...
#include <in_sock.h>
Public Attributes | |
| TInetAddr | iDstAddr |
| Destination address. | |
| TInetAddr | iSrcAddr |
| Source address. | |
| TUint32 | iIndex |
| Interface Index. | |
| TName | iName |
| Interface name. | |
| TUint | iIsUp:1 |
| Flag that is set to 1 if the network interface is attached. | |
| TInetScopeIds | iZone |
| Scope Id Vector (iZone[0] = Interface Index, iZone[1] = IAP ID, iZone[15] = Network ID). | |
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.
| TInetAddr TSoInetIfQuery::iDstAddr |
Destination address.
| TUint32 TSoInetIfQuery::iIndex |
Interface Index.
| TUint TSoInetIfQuery::iIsUp |
| TName TSoInetIfQuery::iName |
Interface name.
| TInetAddr TSoInetIfQuery::iSrcAddr |
Source address.
| TInetScopeIds TSoInetIfQuery::iZone |