sipxmedialib  Version 3.3
IRTCPNotify.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 // Border Guard
12 #ifndef _IRTCPNotify_h
13 #define _IRTCPNotify_h
14 
15 #include "rtcp/RtcpConfig.h"
16 
17 // Include
18 #include "IBaseClass.h"
19 #include "IRTCPSession.h"
20 
21 // Defines
22 #define NO_EVENTS 0x0
23 #define RTCP_NEW_SDES 0x1
24 #define RTCP_SDES_UPDATE 0x2
25 #define RTCP_RR_RCVD 0x4
26 #define RTCP_SR_RCVD 0x8
27 #define RTCP_BYE_RCVD 0x10
28 #define RTCP_RR_SENT 0x20
29 #define RTCP_SR_SENT 0x40
30 #define RTCP_SDES_SENT 0x80
31 #define RTCP_BYE_SENT 0x100
32 #define LOCAL_SSRC_COLLISION 0x200
33 #define REMOTE_SSRC_COLLISION 0x400
34 #define REPORTING_ALARM 0x800
35 #define ALL_EVENTS 0xffff
36 
37 
56 interface IRTCPNotify : public IBaseClass
57  {
58 
59 // Public Methods
60 public:
61 
80  virtual unsigned long GetEventInterest(void) { return(NO_EVENTS); };
81 
106  virtual void NewSDES(IGetSrcDescription *piGetSrcDescription,
107  IRTCPConnection *piRTCPConnection=NULL,
108  IRTCPSession *piRTCPSession=NULL) { return; };
109 
136  virtual void UpdatedSDES(IGetSrcDescription *piGetSrcDescription,
137  unsigned long ulChangeMask,
138  IRTCPConnection *piRTCPConnection=NULL,
139  IRTCPSession *piRTCPSession=NULL)
140  { return; };
141 
142 
167  virtual void
168  SenderReportReceived(IGetSenderStatistics *piGetSenderStatistics,
169  IRTCPConnection *piRTCPConnection=NULL,
170  IRTCPSession *piRTCPSession=NULL)
171  { return; };
172 
173 
198  virtual void
199  ReceiverReportReceived(IGetReceiverStatistics *piGetReceiverStatistics,
200  IRTCPConnection *piRTCPConnection=NULL,
201  IRTCPSession *piRTCPSession=NULL)
202  { return; };
203 
204 
229  virtual void ByeReportReceived(IGetByeInfo *piGetByeInfo,
230  IRTCPConnection *piRTCPConnection=NULL,
231  IRTCPSession *piRTCPSession=NULL)
232  { return; };
233 
234 
259  virtual void SenderReportSent(IGetSenderStatistics *piGetSenderStatistics,
260  IRTCPConnection *piRTCPConnection=NULL,
261  IRTCPSession *piRTCPSession=NULL)
262  { return; };
263 
264 
289  virtual void
290  ReceiverReportSent(IGetReceiverStatistics *piGetReceiverStatistics,
291  IRTCPConnection *piRTCPConnection=NULL,
292  IRTCPSession *piRTCPSession=NULL)
293  { return; };
294 
295 
320  virtual void SDESReportSent(IGetSrcDescription *piGetSrcDescription,
321  IRTCPConnection *piRTCPConnection=NULL,
322  IRTCPSession *piRTCPSession=NULL)
323  { return; };
324 
325 
350  virtual void ByeReportSent(IGetByeInfo *piGetByeInfo,
351  IRTCPConnection *piRTCPConnection=NULL,
352  IRTCPSession *piRTCPSession=NULL)
353  { return; };
354 
376  virtual void LocalSSRCCollision(IRTCPConnection *piRTCPConnection=NULL,
377  IRTCPSession *piRTCPSession=NULL)
378  { return; };
379 
380 
401  virtual void RemoteSSRCCollision(IRTCPConnection *piRTCPConnection=NULL,
402  IRTCPSession *piRTCPSession=NULL)
403  { return; };
404 
426  virtual void RTCPReportingAlarm(IRTCPConnection *piRTCPConnection=NULL,
427  IRTCPSession *piRTCPSession=NULL)
428  { return; };
429 
452  virtual void RTCPConnectionStopped(IRTCPConnection *piRTCPConnection,
453  IRTCPSession *piRTCPSession=NULL)
454  { return; };
455 
478  virtual void RTCPConnectionStarted(IRTCPConnection *piRTCPConnection,
479  IRTCPSession *piRTCPSession=NULL)
480  { return; };
481 };
482 
483 
484 #endif
485 
virtual void UpdatedSDES(IGetSrcDescription *piGetSrcDescription, unsigned long ulChangeMask, IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:136
virtual void SDESReportSent(IGetSrcDescription *piGetSrcDescription, IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:320
virtual void ByeReportSent(IGetByeInfo *piGetByeInfo, IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:350
#define NO_EVENTS
Definition: IRTCPNotify.h:22
virtual void SenderReportSent(IGetSenderStatistics *piGetSenderStatistics, IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:259
virtual void RemoteSSRCCollision(IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:401
virtual void ReceiverReportReceived(IGetReceiverStatistics *piGetReceiverStatistics, IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:199
virtual void RTCPConnectionStopped(IRTCPConnection *piRTCPConnection, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:452
virtual void RTCPReportingAlarm(IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:426
virtual void ByeReportReceived(IGetByeInfo *piGetByeInfo, IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:229
virtual void SenderReportReceived(IGetSenderStatistics *piGetSenderStatistics, IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:168
virtual void LocalSSRCCollision(IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:376
virtual void NewSDES(IGetSrcDescription *piGetSrcDescription, IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:106
virtual void RTCPConnectionStarted(IRTCPConnection *piRTCPConnection, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:478
interface IGetSenderStatistics IGetReceiverStatistics IGetByeInfo ** piGetByeInfo
Definition: IRTCPStatistics.h:74
virtual void ReceiverReportSent(IGetReceiverStatistics *piGetReceiverStatistics, IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: IRTCPNotify.h:290