class RServiceResolver : public RSubSessionBase |
Provides an interface to resolver service names and ports.
Public Member Functions | |
---|---|
IMPORT_C void | Cancel () |
IMPORT_C void | Close () |
IMPORT_C void | GetByName (const TDesC &, TPortNum &, TRequestStatus &) |
IMPORT_C TInt | GetByName (const TDesC &, TPortNum &) |
IMPORT_C void | GetByNumber (const TUint , TDes &, TRequestStatus &) |
IMPORT_C TInt | GetByNumber (const TUint , TDes &) |
IMPORT_C TInt | Open ( RSocketServ &, TUint , TUint , TUint ) |
IMPORT_C void | RegisterService (const TDesC &, const TUint &, TRequestStatus &) |
IMPORT_C TInt | RegisterService (const TDesC &, const TUint &) |
IMPORT_C void | RemoveService (const TDesC &, const TUint &, TRequestStatus &) |
IMPORT_C TInt | RemoveService (const TDesC &, const TUint &) |
IMPORT_C void | GetByName | ( | const TDesC & | aName, |
TPortNum & | aPort, | |||
TRequestStatus & | aStatus | |||
) |
Gets a service by name asynchronously.
const TDesC & aName | Name of the service to get. |
TPortNum & aPort | On completion, the port associated with the service. |
TRequestStatus & aStatus | On completion, KErrNone if successful otherwise another of the system-wide error codes. |
IMPORT_C TInt | GetByName | ( | const TDesC & | aName, |
TPortNum & | aPort | |||
) |
Get a service by name.
IMPORT_C void | GetByNumber | ( | const TUint | aPort, |
TDes & | aName, | |||
TRequestStatus & | aStatus | |||
) |
Gets the name of the service asynchronously.
const TUint aPort | Port of the service. |
TDes & aName | On completion, the name of the service. |
TRequestStatus & aStatus | On completion, KErrNone if successful otherwise another of the system-wide error codes. |
IMPORT_C TInt | GetByNumber | ( | const TUint | aPort, |
TDes & | aName | |||
) |
Gets the name of the service
IMPORT_C TInt | Open | ( | RSocketServ & | aSocketServer, |
TUint | anAddrFamily, | |||
TUint | sockType, | |||
TUint | aProtocol | |||
) |
set up the sub session - unlike name resolvers and net databases, services can be socket type specific. Opens a service resolver service.
Unlike name resolvers ( RHostResolver ) and net databases ( RNetDatabase ), services can be socket type specific.
RSocketServ & aSocketServer | The socket server session. |
TUint anAddrFamily | A constant identifying the protocol family. |
TUint sockType | A constant that identifies the socket type. |
TUint aProtocol | A constant that identifies the protocol that provides the service. |
IMPORT_C void | RegisterService | ( | const TDesC & | aName, |
const TUint & | aPort, | |||
TRequestStatus & | aStatus | |||
) |
Registers a new service asynchronously.
const TDesC & aName | Name of the service. |
const TUint & aPort | Port of the service. |
TRequestStatus & aStatus | On completion, KErrNone if successful otherwise another of the system-wide error codes. |
IMPORT_C TInt | RegisterService | ( | const TDesC & | aName, |
const TUint & | aPort | |||
) |
Registers a new service.
IMPORT_C void | RemoveService | ( | const TDesC & | aName, |
const TUint & | aPort, | |||
TRequestStatus & | aStatus | |||
) |
Removes a service asynchronously.
const TDesC & aName | Name of the service to remove. |
const TUint & aPort | Port of the service to remove. |
TRequestStatus & aStatus | On completion, KErrNone if successful otherwise another of the system-wide error codes. |
IMPORT_C TInt | RemoveService | ( | const TDesC & | aName, |
const TUint & | aPort | |||
) |
Removes a service.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.