sipxmedialib  Version 3.3
IRTCPConnection.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2013 SIPez LLC. All rights reserved.
3 //
4 // Copyright (C) 2004-2006 SIPfoundry Inc.
5 // Licensed by SIPfoundry under the LGPL license.
6 //
7 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
8 // Licensed to SIPfoundry under a Contributor Agreement.
9 //
10 // $$
12 
13 
14 // Border Guard
15 #ifndef _IRTCPConnection_h
16 #define _IRTCPConnection_h
17 
18 #include "rtcp/RtcpConfig.h"
19 
20 // Includes
21 #include "IBaseClass.h"
22 #include "INetworkRender.h"
23 #include "IRTPDispatch.h"
24 #include "INetDispatch.h"
25 #include "ISetSenderStatistics.h"
26 
27 // Pingtel extension
28 #ifdef PINGTEL_OSSOCKET
29 #include <os/OsSocket.h>
30 #endif
31 
49 interface IRTCPConnection : public IBaseClass
50  {
51 
52 // Public Methods
53 public:
54 
55 
81  virtual void GetDispatchInterfaces(INetDispatch **ppiNetDispatch,
82  IRTPDispatch **ppiRTPDispatch,
83  ISetSenderStatistics **piSenderStats)=0;
84 
85 
104  virtual unsigned long GetRemoteSSRC(void)=0;
105 
106 
107 #ifdef PINGTEL_OSSOCKET
108 
126  virtual bool StartRenderer(OsSocket& rRtcpSocket) = 0;
127 #else
128  virtual bool StartRenderer(INetworkRender *piNetworkRender) = 0;
129 #endif
130 
148  virtual bool StopRenderer(void) = 0;
149 
173  virtual void GenerateRTCPReports(unsigned char *puchByeReason = NULL,
174  ssrc_t aulCSRC[] = NULL,
175  unsigned long ulCSRCs = 0)=0;
176 
177 };
178 
179 #endif
180 
interface IRTPDispatch ISetSenderStatistics ** piSenderStats
Definition: IRTCPConnection.h:83
virtual void GenerateRTCPReports(unsigned char *puchByeReason=NULL, ssrc_t aulCSRC[]=NULL, unsigned long ulCSRCs=0)=0
virtual bool StopRenderer(void)=0
virtual unsigned long GetRemoteSSRC(void)=0
virtual bool StartRenderer(INetworkRender *piNetworkRender)=0
uint32_t ssrc_t
Definition: RtcpConfig.h:62
interface IRTPDispatch ** ppiRTPDispatch
Definition: IRTCPConnection.h:81