class RSocketServ : public RCommsSession |
Provides the Connect() function to create an IPC communication channel to the socket server. To close the channel RHandleBase provides a RHandleBase::Close() function.
The prime use for instances of RSocketServ is to establish subsession communications for RSocket, RHostResolver, RNetDatabase and RConnection. Any of the resources which are open using the session are automatically closed when the session is terminated, however it is more appropriate to issue a Close() on each subsession object before closing the session.
The following operations are also provided:
NumProtocols() - enumerates the number of protocols of which the socket server is currently aware.
GetProtocolInfo()/FindProtocol() - return information about a specific protocol.
StartProtocol() - loads a protocol asynchronously.
This class is not intended for user derivation.
Public Member Functions | |
---|---|
RSocketServ() | |
IMPORT_C void | ClearExclusiveMode() |
IMPORT_C TInt | Connect(TUint) |
IMPORT_C TInt | Connect(const TSessionPref &, TUint) |
IMPORT_C TInt | FindProtocol(const TProtocolName &, TProtocolDesc &) |
IMPORT_C TInt | GetProtocolInfo(TUint, TProtocolDesc &) |
IMPORT_C TInt | InstallExtension(const TDesC &, const TDesC &) |
IMPORT_C TInt | NumProtocols(TUint &) |
IMPORT_C void | SetExclusiveMode(TRequestStatus &) |
IMPORT_C void | StartProtocol(TUint, TUint, TUint, TRequestStatus &) |
IMPORT_C void | StopProtocol(TUint, TUint, TUint, TRequestStatus &) |
IMPORT_C TVersion | Version() |
IMPORT_C TBool | __DbgCheckFailNext() |
IMPORT_C TInt | __DbgCheckHeap(TInt) |
IMPORT_C TInt | __DbgCheckMbuf(TInt) |
IMPORT_C TInt | __DbgControl(const ESockDebug::TControlMsg &) |
IMPORT_C TInt | __DbgFailNext(TInt) |
IMPORT_C TInt | __DbgFailNextMbuf(TInt) |
IMPORT_C TInt | __DbgMarkEnd(TInt) |
IMPORT_C TInt | __DbgMarkHeap() |
IMPORT_C TInt | __DbgMbufFreeSpace() |
IMPORT_C TInt | __DbgMbufTotalSpace() |
IMPORT_C TInt | __DbgSetMbufPoolLimit(TInt) |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes | |
RSessionBase:TAttachMode |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
IMPORT_C TInt | Connect | ( | const TSessionPref & | aPref, |
TUint | aMessageSlots = (TUint)-1 | |||
) |
const TSessionPref & aPref | |
TUint aMessageSlots = (TUint)-1 |
IMPORT_C TInt | FindProtocol | ( | const TProtocolName & | aName, |
TProtocolDesc & | aProtocol | |||
) |
const TProtocolName & aName | |
TProtocolDesc & aProtocol |
IMPORT_C TInt | GetProtocolInfo | ( | TUint | anIndex, |
TProtocolDesc & | aProtocol | |||
) |
TUint anIndex | |
TProtocolDesc & aProtocol |
IMPORT_C TInt | InstallExtension | ( | const TDesC & | aDllName, |
const TDesC & | aArgs = TPtrC() | |||
) |
IMPORT_C void | SetExclusiveMode | ( | TRequestStatus & | aStatus | ) |
TRequestStatus & aStatus |
IMPORT_C void | StartProtocol | ( | TUint | anAddrFamily, |
TUint | aSockType, | |||
TUint | aProtocol, | |||
TRequestStatus & | aStatus | |||
) |
TUint anAddrFamily | |
TUint aSockType | |
TUint aProtocol | |
TRequestStatus & aStatus |
IMPORT_C void | StopProtocol | ( | TUint | anAddrFamily, |
TUint | aSockType, | |||
TUint | aProtocol, | |||
TRequestStatus & | aStatus | |||
) |
TUint anAddrFamily | |
TUint aSockType | |
TUint aProtocol | |
TRequestStatus & aStatus |
IMPORT_C TInt | __DbgControl | ( | const ESockDebug::TControlMsg & | aRequestMsg | ) |
const ESockDebug::TControlMsg & aRequestMsg |