class CSSLProviderBase : public CBase |
Abstract base class for all SSL protocol implementations.
Public Member Functions | |
---|---|
CSSLProviderBase ( CSSLFactory &) | |
~CSSLProviderBase () | |
TInt | ActiveOpen () |
TInt | ActiveOpen (const TDesC8 &) |
void | CancelIoctl ( TUint , TUint ) |
void | Close () |
void | ConnectCompleted () |
void | ConstructL ( MSSLSocketNotify *) |
const TInt | GetOption ( TUint , TUint , TDes8 &) |
void | Ioctl ( TUint , TUint , TDes8 *) |
TInt | PassiveOpen ( TUint ) |
TInt | PassiveOpen ( TUint , const TDesC8 &) |
void | Process (RMBufChain &) |
void | ProcessL (const TDesC8 &) |
void | SetNotify ( MSSLSocketNotify *) |
TInt | SetOption ( TUint , TUint , const TDesC8 &) |
void | Shutdown () |
TUint | Write (const TDesC8 &, TUint , TSockAddr *) |
Public Member Enumerations | |
---|---|
enum | TCloseType { ENormal , EStopInput , EStopOutput , EImmediate } |
Public Attributes | |
---|---|
TDblQueLink | iLink |
Protected Attributes | |
---|---|
CSSLFactory * | iFactory |
Private Attributes | |
---|---|
MSSLSocketNotify * | iSocket |
CSSLProviderBase | ( | CSSLFactory & | aFactory | ) |
CSSLFactory & aFactory |
TInt | ActiveOpen | ( | ) | [pure virtual] |
Initiates a connection operation.
This means that it tells the protocol to attempt to connect to a peer. It is called by the socket server in response to a connect request from a client. ActiveOpen() is only ever called on connection-oriented sockets. Such a socket should always have both the local address and the remote address specified before ActiveOpen() is called. If this is not the case, then the protocol should panic. When a connection has completed, the protocol should call ConnectComplete() on its TNotify.
If an error occurs during connection the protocol should not call ConnectComplete() at all; instead it should call Error().
TInt | ActiveOpen | ( | const TDesC8 & | aConnectionData | ) | [pure virtual] |
Same as ActiveOpen() , but with user data in the connection frame.
const TDesC8 & aConnectionData | User specified connection data. |
void | ConnectCompleted | ( | ) | [pure virtual] |
Indicates that the connection has been completed.
void | ConstructL | ( | MSSLSocketNotify * | aParent | ) | [pure virtual] |
Second phase contructor.
MSSLSocketNotify * aParent | Parent to be notified. |
const TInt | GetOption | ( | TUint | level, |
TUint | name, | |||
TDes8 & | anOption | |||
) | [pure virtual] |
void | Ioctl | ( | TUint | level, |
TUint | name, | |||
TDes8 * | anOption | |||
) | [pure virtual] |
TInt | PassiveOpen | ( | TUint | aQueSize | ) | [pure virtual] |
Tells the protocol to start waiting for an incoming connection request on this socket (i.e. port).
It is called by the socket server in response to a listen request from a client.
PassiveOpen() is only ever called on connection-oriented sockets. Such a socket should always have both the local address and the remote address specified before PassiveOpen() is called. If this is not the case, then the protocol should panic.
The protocol should keep a count of sockets in Start state - incrementing a variable in ConnectComplete(), and decrementing it in Start().
When a connection has completed, the protocol should call ConnectComplete() on its TNotify.
If an error occurs during connection the protocol should not call ConnectComplete() at all; instead it should call Error().
TUint aQueSize | The number of sockets which can be waiting for an outstanding Start() after calling ConnectComplete(). |
TInt | PassiveOpen | ( | TUint | aQueSize, |
const TDesC8 & | aConnectionData | |||
) | [pure virtual] |
Same as PassiveOpen() , but with user data in the connection frame.
void | Process | ( | RMBufChain & | aBuf | ) | [pure virtual] |
Process the event in the buffer.
RMBufChain & aBuf | Chain with events to process. |
void | ProcessL | ( | const TDesC8 & | aDesc | ) | [pure virtual] |
const TDesC8 & aDesc |
void | SetNotify | ( | MSSLSocketNotify * | aNotify | ) | [inline] |
Set the notification parent,
MSSLSocketNotify * aNotify | Parent to be notified. |
TInt | SetOption | ( | TUint | level, |
TUint | name, | |||
const TDesC8 & | anOption | |||
) | [pure virtual] |
Sets an option.
void | Shutdown | ( | ) | [pure virtual] |
Terminates a connection (or closes a non connection-oriented socket down).
Normally, when the socket server has called Shutdown() for a socket, it will wait for the socket to call CanClose() before destroying the CServProviderBase object.
TUint | Write | ( | const TDesC8 & | aDesc, |
TUint | options, | |||
TSockAddr * | anAddr = NULL | |||
) | [pure virtual] |
Connection closing type.
ENormal |
Normal. |
EStopInput |
Stop input. |
EStopOutput |
Stop output. |
EImmediate |
Close immediately. |
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.