CSSLProviderBase Class Reference

class CSSLProviderBase : public CBase

Abstract base class for all SSL protocol implementations.

Since
v5.0
No longer used by networking

Inherits from

Constructor & Destructor Documentation

CSSLProviderBase(CSSLFactory &)

CSSLProviderBase(CSSLFactory &aFactory)

Parameters

CSSLFactory & aFactory

~CSSLProviderBase()

~CSSLProviderBase()[virtual]

Member Functions Documentation

ActiveOpen()

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().

ActiveOpen(const TDesC8 &)

TInt ActiveOpen(const TDesC8 &aConnectionData)[pure virtual]

Same as ActiveOpen(), but with user data in the connection frame.

Parameters

const TDesC8 & aConnectionDataUser specified connection data.

CancelIoctl(TUint, TUint)

voidCancelIoctl(TUintaLevel,
TUintaName
)[pure virtual]

Parameters

TUint aLevel
TUint aName

Close()

voidClose()[pure virtual]

Closes the connection.

ConnectCompleted()

voidConnectCompleted()[pure virtual]

Indicates that the connection has been completed.

ConstructL(MSSLSocketNotify *)

voidConstructL(MSSLSocketNotify *aParent)[pure virtual]

Second phase contructor.

Parameters

MSSLSocketNotify * aParentParent to be notified.

GetOption(TUint, TUint, TDes8 &)

const TIntGetOption(TUintlevel,
TUintname,
TDes8 &anOption
)[pure virtual]

Parameters

TUint level
TUint name
TDes8 & anOption

Ioctl(TUint, TUint, TDes8 *)

voidIoctl(TUintlevel,
TUintname,
TDes8 *anOption
)[pure virtual]

Parameters

TUint level
TUint name
TDes8 * anOption

PassiveOpen(TUint)

TInt PassiveOpen(TUintaQueSize)[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().

Parameters

TUint aQueSizeThe number of sockets which can be waiting for an outstanding Start() after calling ConnectComplete().

PassiveOpen(TUint, const TDesC8 &)

TInt PassiveOpen(TUintaQueSize,
const TDesC8 &aConnectionData
)[pure virtual]

Same as PassiveOpen(), but with user data in the connection frame.

Parameters

TUint aQueSizeThe number of sockets which can be waiting for an outstanding Start() after calling ConnectComplete().
const TDesC8 & aConnectionDataUser specified connection data

Process(RMBufChain &)

voidProcess(RMBufChain &aBuf)[pure virtual]

Process the event in the buffer.

Parameters

RMBufChain & aBufChain with events to process.

ProcessL(const TDesC8 &)

voidProcessL(const TDesC8 &aDesc)[pure virtual]

Parameters

const TDesC8 & aDesc

SetNotify(MSSLSocketNotify *)

voidSetNotify(MSSLSocketNotify *aNotify)[inline]

Set the notification parent,

Parameters

MSSLSocketNotify * aNotifyParent to be notified.

SetOption(TUint, TUint, const TDesC8 &)

TInt SetOption(TUintlevel,
TUintname,
const TDesC8 &anOption
)[pure virtual]

Sets an option.

Parameters

TUint levelInteger constant identifying the option.
TUint nameOption name.
const TDesC8 & anOptionOption value packaged in a descriptor.

Shutdown()

voidShutdown()[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.

Write(const TDesC8 &, TUint, TSockAddr *)

TUint Write(const TDesC8 &aDesc,
TUintoptions,
TSockAddr *anAddr = NULL
)[pure virtual]

Parameters

const TDesC8 & aDesc
TUint options
TSockAddr * anAddr = NULL

Member Enumerations Documentation

Enum TCloseType

Connection closing type.

Enumerators

ENormal

Normal.

EStopInput

Stop input.

EStopOutput

Stop output.

EImmediate

Close immediately.

Member Data Documentation

CSSLFactory * iFactory

CSSLFactory *iFactory[protected]

TDblQueLink iLink

TDblQueLink iLink

MSSLSocketNotify * iSocket

MSSLSocketNotify *iSocket[private]