#include <es_sock.h>
Link against: esock.lib
class RServiceResolver : public RSubSessionBase |
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 &) |
Provides an interface to resolver service names and ports.
IMPORT_C void | GetByName | ( | const TDesC & | aName, |
TPortNum & | aPort, | |||
TRequestStatus & | aStatus | |||
) |
Gets a service by name asynchronously.
Parameters | |
---|---|
aName | Name of the service to get. |
aPort | On completion, the port associated with the service. |
aStatus | On completion, KErrNone if successful otherwise another of the system-wide error codes. |
IMPORT_C void | GetByNumber | ( | const TUint | aPort, |
TDes & | aName, | |||
TRequestStatus & | aStatus | |||
) |
Gets the name of the service asynchronously.
Parameters | |
---|---|
aPort | Port of the service. |
aName | On completion, the name of the service. |
aStatus | On completion, KErrNone if successful otherwise another of the system-wide error codes. |
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.
Parameters | |
---|---|
aSocketServer | The socket server session. |
anAddrFamily | A constant identifying the protocol family. |
sockType | A constant that identifies the socket type. |
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.
Parameters | |
---|---|
aName | Name of the service. |
aPort | Port of the service. |
aStatus | On completion, KErrNone if successful otherwise another of the system-wide error codes. |
Capability | |
---|---|
NetworkControl | To protect against dangerous new services being added, which may steal legimate services resources |
Registers a new service.
Parameters | |
---|---|
aName | Name of the service. |
aPort | Port of the service. |
Capability | |
---|---|
NetworkControl | To protect against dangerous new services being added, which may steal legimate services resources |
IMPORT_C void | RemoveService | ( | const TDesC & | aName, |
const TUint & | aPort, | |||
TRequestStatus & | aStatus | |||
) |
Removes a service asynchronously.
Parameters | |
---|---|
aName | Name of the service to remove. |
aPort | Port of the service to remove. |
aStatus | On completion, KErrNone if successful otherwise another of the system-wide error codes. |
Capability | |
---|---|
NetworkControl | Ensure that only privileged apps can remove information from the service resolver |
Removes a service.
Parameters | |
---|---|
aName | Name of the service. |
aPort | Port of the service. |
Capability | |
---|---|
NetworkControl | Ensure that only privileged apps can remove information from the service resolver |