CRtpComm Class Reference

class CRtpComm : public CBase

Class for socket communication.

RtpService.dll

Inherits from

Constructor & Destructor Documentation

CRtpComm()

CRtpComm ( ) [private]

~CRtpComm()

~CRtpComm ( )

Member Functions Documentation

CancelSend(TPortType)

void CancelSend ( TPortType aPortType )

Parameters

TPortType aPortType

Close()

void Close ( ) [private]

ConstructL(TUint &, RSocketServ &, RConnection &, const TCreateSessionParams &, MRtpErrNotify &, TBool)

void ConstructL ( TUint & aLocalPort,
RSocketServ & aSocketServ,
RConnection & aRConn,
const TCreateSessionParams & aParams,
MRtpErrNotify & aErrNotify,
TBool aEnableRtcp
) [private]

Parameters

TUint & aLocalPort
RSocketServ & aSocketServ
RConnection & aRConn
const TCreateSessionParams & aParams
MRtpErrNotify & aErrNotify
TBool aEnableRtcp

ConstructReceiverL(TBool)

void ConstructReceiverL ( TBool aNonRtpObserverSet )

Create the resources necessary for receiving RTP, and RTCP if necessary.

Parameters

TBool aNonRtpObserverSet

ConstructSenderL(TInetAddr &, TInetAddr &)

void ConstructSenderL ( TInetAddr & aRtpAddr,
TInetAddr & aRtcpAddr
)

Create the resources necessary for sending RTP, and RTCP if necessary

Parameters

TInetAddr & aRtpAddr
TInetAddr & aRtcpAddr

GetSocket(TPortType)

RSocket * GetSocket ( TPortType aPortType )

Parameters

TPortType aPortType

MaxSocketSize()

TInt MaxSocketSize ( )

NewL(TUint &, RSocketServ &, RConnection &, const TCreateSessionParams &, MRtpErrNotify &, TBool)

CRtpComm * NewL ( TUint & aLocalPort,
RSocketServ & aSocketServ,
RConnection & aRConn,
const TCreateSessionParams & aParams,
MRtpErrNotify & aErrNotify,
TBool aEnableRtcp
) [static]

Parameters

TUint & aLocalPort
RSocketServ & aSocketServ
RConnection & aRConn
const TCreateSessionParams & aParams
MRtpErrNotify & aErrNotify
TBool aEnableRtcp

Receive(TPortType, TDes8 &)

TInt Receive ( TPortType aPortType,
TDes8 & aRecvBuf
)

Parameters

TPortType aPortType
TDes8 & aRecvBuf

RegisterReceivedNotify(MReceivedNotify *)

void RegisterReceivedNotify ( MReceivedNotify * aNotify )

Parameters

MReceivedNotify * aNotify

Send(TPortType, const TDesC8 &)

TInt Send ( TPortType aPortType,
const TDesC8 & aSendBuf
)

Parameters

TPortType aPortType
const TDesC8 & aSendBuf

Send(TPortType, const TDesC8 &, TRequestStatus &)

void Send ( TPortType aPortType,
const TDesC8 & aSendBuf,
TRequestStatus & aStatus
)

Parameters

TPortType aPortType
const TDesC8 & aSendBuf
TRequestStatus & aStatus

SetAcceptedFromAddress(TInetAddr &)

void SetAcceptedFromAddress ( TInetAddr & aAddr )

Parameters

TInetAddr & aAddr

SetNonRtpObserverFlag(TBool)

void SetNonRtpObserverFlag ( TBool aValue )

Parameters

TBool aValue

SetRecvCallback(TPortType, TCallBack &)

void SetRecvCallback ( TPortType aPortType,
TCallBack & aCallback
)

Parameters

TPortType aPortType
TCallBack & aCallback

SetToAddress(TPortType, TInetAddr &)

TInt SetToAddress ( TPortType aPortType,
TInetAddr & aAddr
)

Parameters

TPortType aPortType
TInetAddr & aAddr

Member Data Documentation

MRtpErrNotify * iErrNotify

MRtpErrNotify * iErrNotify [private]

TUint iPriority

TUint iPriority [private]

MReceivedNotify * iReceivedNotify

MReceivedNotify * iReceivedNotify [private]

CRtpCommRecv * iReceiver

CRtpCommRecv * iReceiver [protected]

TBool iRtcpEnabled

TBool iRtcpEnabled [private]

CRtpCommSend * iSender

CRtpCommSend * iSender [private]

RSocket iSocket

RSocket iSocket [private]

TInt iSocketSize

TInt iSocketSize [private]