class CProtocolBase : public CBase |
Protocols created by protocol families must be instances of sub-classes of the abstract CProtocolBase. Since v5.0
Public Member Functions | |
---|---|
CProtocolBase() | |
~CProtocolBase() | |
IMPORT_C void | BindL(CProtocolBase *, TUint) |
IMPORT_C void | BindToL(CProtocolBase *) |
IMPORT_C void | Close() |
IMPORT_C void | CloseNow() |
IMPORT_C void | Error(TInt, CProtocolBase *) |
IMPORT_C TInt | GetOption(TUint, TUint, TDes8 &, CProtocolBase *) |
void | Identify(TServerProtocolDesc *) |
IMPORT_C void | InitL(TDesC &) |
IMPORT_C CHostResolvProvdBase * | NewHostResolverL() |
IMPORT_C CNetDBProvdBase * | NewNetDatabaseL() |
IMPORT_C CServProviderBase * | NewSAPL(TUint) |
IMPORT_C CServiceResolvProvdBase * | NewServiceResolverL() |
IMPORT_C void | Open() |
IMPORT_C void | Process(RMBufChain &, CProtocolBase *) |
IMPORT_C void | Process(TDes8 &, TSockAddr *, TSockAddr *, CProtocolBase *) |
CProtocolFamilyBase * | ProtocolFamily() |
TInt | RefCount() |
IMPORT_C TInt | Send(RMBufChain &, CProtocolBase *) |
IMPORT_C TInt | Send(TDes8 &, TSockAddr *, TSockAddr *, CProtocolBase *) |
IMPORT_C TInt | SetOption(TUint, TUint, const TDesC8 &, CProtocolBase *) |
IMPORT_C void | StartL() |
IMPORT_C void | StartSending(CProtocolBase *) |
IMPORT_C TPtrC | Tag() |
Protected Member Functions | |
---|---|
IMPORT_C void | CanClose() |
Private Member Functions | |
---|---|
void | TryDelete() |
Private Attributes | |
---|---|
CProtocolRef * | iManagerRef |
TInt | iRefCount |
IMPORT_C void | BindL | ( | CProtocolBase * | protocol, |
TUint | id | |||
) | [virtual] |
CProtocolBase * protocol | |
TUint id |
IMPORT_C void | BindToL | ( | CProtocolBase * | protocol | ) | [virtual] |
CProtocolBase * protocol |
IMPORT_C void | Error | ( | TInt | anError, |
CProtocolBase * | aSourceProtocol = NULL | |||
) | [virtual] |
TInt anError | |
CProtocolBase * aSourceProtocol = NULL |
IMPORT_C TInt | GetOption | ( | TUint | level, |
TUint | name, | |||
TDes8 & | option, | |||
CProtocolBase * | aSourceProtocol = NULL | |||
) | [virtual] |
TUint level | |
TUint name | |
TDes8 & option | |
CProtocolBase * aSourceProtocol = NULL |
void | Identify | ( | TServerProtocolDesc * | aProtocolDesc | ) | const [pure virtual] |
Fills in the passed TServerProtocolDesc with data describing the protocol.
TServerProtocolDesc * aProtocolDesc | Protocol description object to fill in |
IMPORT_C CServProviderBase * | NewSAPL | ( | TUint | aProtocol | ) | [virtual] |
TUint aProtocol |
IMPORT_C void | Process | ( | RMBufChain & | , |
CProtocolBase * | aSourceProtocol = NULL | |||
) | [virtual] |
RMBufChain & | |
CProtocolBase * aSourceProtocol = NULL |
IMPORT_C void | Process | ( | TDes8 & | aPDU, |
TSockAddr * | from, | |||
TSockAddr * | to = NULL, | |||
CProtocolBase * | aSourceProtocol = NULL | |||
) | [virtual] |
TDes8 & aPDU | |
TSockAddr * from | |
TSockAddr * to = NULL | |
CProtocolBase * aSourceProtocol = NULL |
TInt | RefCount | ( | ) | const [inline] |
Reference counting by protocols created by protocol families.
number of protocols
IMPORT_C TInt | Send | ( | RMBufChain & | aPDU, |
CProtocolBase * | aSourceProtocol = NULL | |||
) | [virtual] |
RMBufChain & aPDU | |
CProtocolBase * aSourceProtocol = NULL |
IMPORT_C TInt | Send | ( | TDes8 & | aPDU, |
TSockAddr * | to, | |||
TSockAddr * | from = NULL, | |||
CProtocolBase * | aSourceProtocol = NULL | |||
) | [virtual] |
TDes8 & aPDU | |
TSockAddr * to | |
TSockAddr * from = NULL | |
CProtocolBase * aSourceProtocol = NULL |
IMPORT_C TInt | SetOption | ( | TUint | level, |
TUint | name, | |||
const TDesC8 & | option, | |||
CProtocolBase * | aSourceProtocol = NULL | |||
) | [virtual] |
TUint level | |
TUint name | |
const TDesC8 & option | |
CProtocolBase * aSourceProtocol = NULL |
IMPORT_C void | StartSending | ( | CProtocolBase * | aProtocol | ) | [virtual] |
CProtocolBase * aProtocol |