OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // Specifies whether the offer indicates the use of RTCP mux. | 39 // Specifies whether the offer indicates the use of RTCP mux. |
40 bool SetOffer(bool offer_enable, ContentSource src); | 40 bool SetOffer(bool offer_enable, ContentSource src); |
41 | 41 |
42 // Specifies whether the provisional answer indicates the use of RTCP mux. | 42 // Specifies whether the provisional answer indicates the use of RTCP mux. |
43 bool SetProvisionalAnswer(bool answer_enable, ContentSource src); | 43 bool SetProvisionalAnswer(bool answer_enable, ContentSource src); |
44 | 44 |
45 // Specifies whether the answer indicates the use of RTCP mux. | 45 // Specifies whether the answer indicates the use of RTCP mux. |
46 bool SetAnswer(bool answer_enable, ContentSource src); | 46 bool SetAnswer(bool answer_enable, ContentSource src); |
47 | 47 |
48 // Determines whether the specified packet is RTCP. | |
49 bool DemuxRtcp(const char* data, int len); | |
50 | |
51 private: | 48 private: |
52 bool ExpectOffer(bool offer_enable, ContentSource source); | 49 bool ExpectOffer(bool offer_enable, ContentSource source); |
53 bool ExpectAnswer(ContentSource source); | 50 bool ExpectAnswer(ContentSource source); |
54 enum State { | 51 enum State { |
55 // RTCP mux filter unused. | 52 // RTCP mux filter unused. |
56 ST_INIT, | 53 ST_INIT, |
57 // Offer with RTCP mux enabled received. | 54 // Offer with RTCP mux enabled received. |
58 // RTCP mux filter is not active. | 55 // RTCP mux filter is not active. |
59 ST_RECEIVEDOFFER, | 56 ST_RECEIVEDOFFER, |
60 // Offer with RTCP mux enabled sent. | 57 // Offer with RTCP mux enabled sent. |
(...skipping 11 matching lines...) Expand all Loading... |
72 // the filter. | 69 // the filter. |
73 ST_ACTIVE | 70 ST_ACTIVE |
74 }; | 71 }; |
75 State state_; | 72 State state_; |
76 bool offer_enable_; | 73 bool offer_enable_; |
77 }; | 74 }; |
78 | 75 |
79 } // namespace cricket | 76 } // namespace cricket |
80 | 77 |
81 #endif // WEBRTC_PC_RTCPMUXFILTER_H_ | 78 #endif // WEBRTC_PC_RTCPMUXFILTER_H_ |
OLD | NEW |