sipxmedialib  Version 3.3
MprnRtpStreamActivityMsg.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2008 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2008 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // $$
10 
11 #ifndef _MprnRtpStreamActivityMsg_h_
12 #define _MprnRtpStreamActivityMsg_h_
13 
14 // SYSTEM INCLUDES
15 
16 // APPLICATION INCLUDES
17 #include "os/OsMsg.h"
18 #include "utl/UtlString.h"
19 #include "MpResNotificationMsg.h"
20 
21 // DEFINES
22 // MACROS
23 // EXTERNAL FUNCTIONS
24 // EXTERNAL VARIABLES
25 // CONSTANTS
26 // STRUCTS
27 // TYPEDEFS
28 // FORWARD DECLARATIONS
29 
34 {
35 /* //////////////////////////// PUBLIC //////////////////////////////////// */
36 public:
37 
38 /* ============================ CREATORS ================================== */
40 
41 
42  enum StreamState {
46  };
47 
49  MprnRtpStreamActivityMsg(const UtlString& namedResOriginator,
50  StreamState state,
51  RtpSRC ssrc,
52  unsigned address,
53  int port,
55  int streamId = -1);
56 
59 
61  virtual OsMsg* createCopy() const;
62 
64  virtual ~MprnRtpStreamActivityMsg();
65 
67 
68 /* ============================ MANIPULATORS ============================== */
70 
71 
74 
76 
77 /* ============================ ACCESSORS ================================= */
79 
80 
82  StreamState getState() const;
83 
85  unsigned getSsrc() const;
86 
88  unsigned getAddress() const;
89 
91  int getPort() const;
92 
94 
95 /* ============================ INQUIRY =================================== */
97 
98 
100 
101 /* //////////////////////////// PROTECTED ///////////////////////////////// */
102 protected:
105  unsigned mAddress;
106  int mPort;
107 
108 /* //////////////////////////// PRIVATE /////////////////////////////////// */
109 private:
110 };
111 
112 /* ============================ INLINE METHODS ============================ */
113 
114 #endif // _MprnRtpStreamActivityMsg_h_
MprnRtpStreamActivityMsg & operator=(const MprnRtpStreamActivityMsg &rhs)
Assignment operator.
Definition: MprnRtpStreamActivityMsg.cpp:61
Stream have been started.
Definition: MprnRtpStreamActivityMsg.h:43
StreamState mState
Stream state to be reported.
Definition: MprnRtpStreamActivityMsg.h:103
int getPort() const
Get port of the stream source/destination.
Definition: MprnRtpStreamActivityMsg.cpp:92
virtual OsMsg * createCopy() const
Create a copy of this msg object (which may be of a derived type)
Definition: MprnRtpStreamActivityMsg.cpp:48
StreamState getState() const
Get the stream state.
Definition: MprnRtpStreamActivityMsg.cpp:77
unsigned getAddress() const
Get IP address of the stream source/destination.
Definition: MprnRtpStreamActivityMsg.cpp:87
MprnRtpStreamActivityMsg(const UtlString &namedResOriginator, StreamState state, RtpSRC ssrc, unsigned address, int port, MpConnectionID connId=MP_INVALID_CONNECTION_ID, int streamId=-1)
Constructor.
Definition: MprnRtpStreamActivityMsg.cpp:25
Stream have been stopped.
Definition: MprnRtpStreamActivityMsg.h:44
unsigned getSsrc() const
Get the stream SSRC.
Definition: MprnRtpStreamActivityMsg.cpp:82
interface rtpts_t rtpts_t ssrc_t ssrc
Definition: ISetSenderStatistics.h:68
RtpSRC mSsrc
SSRC of the stream.
Definition: MprnRtpStreamActivityMsg.h:104
Definition: MpResNotificationMsg.h:31
int mPort
Port of the stream source/destination.
Definition: MprnRtpStreamActivityMsg.h:106
Definition: MprnRtpStreamActivityMsg.h:33
Stream attributes have been changed.
Definition: MprnRtpStreamActivityMsg.h:45
unsigned mAddress
IP of the stream source/destination.
Definition: MprnRtpStreamActivityMsg.h:105
int MpConnectionID
Flowgraph connection ID.
Definition: MpTypes.h:56
uint32_t RtpSRC
RTP SSRC or CSRC identifier.
Definition: MpTypes.h:61
#define MP_INVALID_CONNECTION_ID
Definition: MpTypes.h:57
virtual ~MprnRtpStreamActivityMsg()
Destructor.
Definition: MprnRtpStreamActivityMsg.cpp:53
StreamState
Definition: MprnRtpStreamActivityMsg.h:42