MGenericSecureSocket Class Reference

class MGenericSecureSocket

Interface to provide Generic Secure Socket Functionality.

Since
v9.2

Member Functions Documentation

CancelRead()

voidCancelRead()[pure virtual]

Cancel the current read operation

CancelRecv()

voidCancelRecv()[pure virtual]

Cancel the current recv operation

CancelSend()

voidCancelSend()[pure virtual]

Cancel the current send operation

Close()

voidClose()[pure virtual]

Close the Generic Socket

GetOpt(TUint, TUint, TDes8 &)

TInt GetOpt(TUintaOptionName,
TUintaOptionLevel,
TDes8 &aOption
)[pure virtual]

Gets a socket option

Parameters

TUint aOptionNameAn integer constant which identifies an option.
TUint aOptionLevelAn integer constant which identifies level of an option
TDes8 & aOptionOption value packaged in a descriptor.

LocalName(TSockAddr &)

voidLocalName(TSockAddr &aAddr)[pure virtual]

Gets the local address of a bound socket.

Parameters

TSockAddr & aAddrLocal address which is filled in on return.

Read(TDes8 &, TRequestStatus &)

voidRead(TDes8 &aDataRead,
TRequestStatus &aStatus
)[pure virtual]

Read data from the generic socket for the secure socket

Parameters

TDes8 & aDataReadencrypted data read for the secure socket
TRequestStatus & aStatusRequest Status. On return KErrNone if successful, otherwise another of the system-wide error

Recv(TDes8 &, TUint, TRequestStatus &)

voidRecv(TDes8 &aDataReceived,
TUintaFlags,
TRequestStatus &aStatus
)[pure virtual]

Receive data from the generic socket for the secure socket

Parameters

TDes8 & aDataReceivedencrypted data received for the secure socket
TUint aFlagsFlags which are passed through to protocol
TRequestStatus & aStatusRequest Status. On return KErrNone if successful, otherwise another of the system-wide error

RemoteName(TSockAddr &)

voidRemoteName(TSockAddr &aAddr)[pure virtual]

Gets the remote address of a bound socket.

Parameters

TSockAddr & aAddrRemote address which is filled in on return.

Send(const TDesC8 &, TUint, TRequestStatus &)

voidSend(const TDesC8 &aDataToSend,
TUintaFlags,
TRequestStatus &aStatus
)[pure virtual]

Send data over the generic socket for the secure socket

Parameters

const TDesC8 & aDataToSendencrypted data to send for secure socket
TUint aFlagsFlags which are passed through to protocol
TRequestStatus & aStatusRequest Status

SetOpt(TUint, TUint, const TDesC8 &)

TInt SetOpt(TUintaOptionName,
TUintaOptionLevel,
const TDesC8 &aOption
)[pure virtual]

Sets a socket option

Parameters

TUint aOptionNameAn integer constant which identifies an option.
TUint aOptionLevelAn integer constant which identifies level of an option
const TDesC8 & aOptionOption value packaged in a descriptor.