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)

voidCancelSend(TPortTypeaPortType)

Parameters

TPortType aPortType

Close()

voidClose()[private]

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

voidConstructL(TUint &aLocalPort,
RSocketServ &aSocketServ,
RConnection &aRConn,
const TCreateSessionParams &aParams,
MRtpErrNotify &aErrNotify,
TBoolaEnableRtcp
)[private]

Parameters

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

ConstructReceiverL(TBool)

voidConstructReceiverL(TBoolaNonRtpObserverSet)

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

Parameters

TBool aNonRtpObserverSet

ConstructSenderL(TInetAddr &, TInetAddr &)

voidConstructSenderL(TInetAddr &aRtpAddr,
TInetAddr &aRtcpAddr
)

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

Parameters

TInetAddr & aRtpAddr
TInetAddr & aRtcpAddr

GetSocket(TPortType)

RSocket *GetSocket(TPortTypeaPortType)

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,
TBoolaEnableRtcp
)[static]

Parameters

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

Receive(TPortType, TDes8 &)

TInt Receive(TPortTypeaPortType,
TDes8 &aRecvBuf
)

Parameters

TPortType aPortType
TDes8 & aRecvBuf

RegisterReceivedNotify(MReceivedNotify *)

voidRegisterReceivedNotify(MReceivedNotify *aNotify)

Parameters

MReceivedNotify * aNotify

Send(TPortType, const TDesC8 &)

TInt Send(TPortTypeaPortType,
const TDesC8 &aSendBuf
)

Parameters

TPortType aPortType
const TDesC8 & aSendBuf

Send(TPortType, const TDesC8 &, TRequestStatus &)

voidSend(TPortTypeaPortType,
const TDesC8 &aSendBuf,
TRequestStatus &aStatus
)

Parameters

TPortType aPortType
const TDesC8 & aSendBuf
TRequestStatus & aStatus

SetAcceptedFromAddress(TInetAddr &)

voidSetAcceptedFromAddress(TInetAddr &aAddr)

Parameters

TInetAddr & aAddr

SetNonRtpObserverFlag(TBool)

voidSetNonRtpObserverFlag(TBoolaValue)

Parameters

TBool aValue

SetRecvCallback(TPortType, TCallBack &)

voidSetRecvCallback(TPortTypeaPortType,
TCallBack &aCallback
)

Parameters

TPortType aPortType
TCallBack & aCallback

SetToAddress(TPortType, TInetAddr &)

TInt SetToAddress(TPortTypeaPortType,
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]