class RHostResolver : public RSubSessionBase |
Provides an interface to host name resolution services, such as DNS, that may be provided by particular protocol modules.
The interface provides functions to access the following facilities:
Obtaining names from addresses.
Obtaining addresses from names.
Getting and setting local host name.
Not all actual services provide all these facilities. You should also consult the documentation on the protocol you are intending to use. Functions return KErrNotSupported if the protocol does not support a given operation. Note that a description of the protocol family name resolution capabilities is available at run-time from TProtocolDesc::iNamingServices.
Before using any service, a connection to a socket server session must be made.
Each function is available in both synchronous and asynchronous versions.
A single RHostResolver can only perform one request of any type at once. A client is panicked if it makes two requests.
Public Member Functions | |
---|---|
IMPORT_C void | Cancel() |
IMPORT_C void | Close() |
IMPORT_C void | GetByAddress(const TSockAddr &, TNameEntry &, TRequestStatus &) |
IMPORT_C TInt | GetByAddress(const TSockAddr &, TNameEntry &) |
IMPORT_C void | GetByName(const TDesC &, TNameEntry &, TRequestStatus &) |
IMPORT_C TInt | GetByName(const TDesC &, TNameEntry &) |
IMPORT_C TInt | GetHostName(TDes &) |
IMPORT_C void | GetHostName(TDes &, TRequestStatus &) |
IMPORT_C void | Next(TNameEntry &, TRequestStatus &) |
IMPORT_C TInt | Next(TNameEntry &) |
IMPORT_C TInt | Open(RSocketServ &, TUint, TUint) |
IMPORT_C TInt | Open(RSocketServ &, TUint, TUint, RConnection &) |
IMPORT_C void | Query(const TDesC8 &, TDes8 &, TRequestStatus &) |
IMPORT_C TInt | Query(const TDesC8 &, TDes8 &) |
IMPORT_C void | QueryGetNext(TDes8 &, TRequestStatus &) |
IMPORT_C TInt | QueryGetNext(TDes8 &) |
IMPORT_C TInt | SetHostName(const TDesC &) |
IMPORT_C TInt | SetOpt(TUint, TUint, const TDesC8 &) |
IMPORT_C void | GetByAddress | ( | const TSockAddr & | anAddr, |
TNameEntry & | aResult, | |||
TRequestStatus & | aStatus | |||
) |
const TSockAddr & anAddr | |
TNameEntry & aResult | |
TRequestStatus & aStatus |
IMPORT_C TInt | GetByAddress | ( | const TSockAddr & | anAddr, |
TNameEntry & | aResult | |||
) |
const TSockAddr & anAddr | |
TNameEntry & aResult |
IMPORT_C void | GetByName | ( | const TDesC & | aName, |
TNameEntry & | aResult, | |||
TRequestStatus & | aStatus | |||
) |
const TDesC & aName | |
TNameEntry & aResult | |
TRequestStatus & aStatus |
IMPORT_C TInt | GetByName | ( | const TDesC & | aName, |
TNameEntry & | aResult | |||
) |
const TDesC & aName | |
TNameEntry & aResult |
IMPORT_C void | GetHostName | ( | TDes & | aName, |
TRequestStatus & | aStatus | |||
) |
TDes & aName | |
TRequestStatus & aStatus |
IMPORT_C void | Next | ( | TNameEntry & | aResult, |
TRequestStatus & | aStatus | |||
) |
TNameEntry & aResult | |
TRequestStatus & aStatus |
IMPORT_C TInt | Open | ( | RSocketServ & | aSocketServer, |
TUint | anAddrFamily, | |||
TUint | aProtocol | |||
) |
RSocketServ & aSocketServer | |
TUint anAddrFamily | |
TUint aProtocol |
IMPORT_C TInt | Open | ( | RSocketServ & | aSocketServer, |
TUint | anAddrFamily, | |||
TUint | aProtocol, | |||
RConnection & | aConnection | |||
) |
RSocketServ & aSocketServer | |
TUint anAddrFamily | |
TUint aProtocol | |
RConnection & aConnection |
IMPORT_C void | Query | ( | const TDesC8 & | aQuery, |
TDes8 & | aResult, | |||
TRequestStatus & | aStatus | |||
) |
const TDesC8 & aQuery | |
TDes8 & aResult | |
TRequestStatus & aStatus |
IMPORT_C void | QueryGetNext | ( | TDes8 & | aResult, |
TRequestStatus & | aStatus | |||
) |
TDes8 & aResult | |
TRequestStatus & aStatus |