OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 int32_t SendRTCPPacketTo(const int8_t* data, | 109 int32_t SendRTCPPacketTo(const int8_t* data, |
110 size_t length, | 110 size_t length, |
111 const SocketAddress& to) override; | 111 const SocketAddress& to) override; |
112 int32_t SendRTPPacketTo(const int8_t* data, | 112 int32_t SendRTPPacketTo(const int8_t* data, |
113 size_t length, | 113 size_t length, |
114 uint16_t rtpPort) override; | 114 uint16_t rtpPort) override; |
115 int32_t SendRTCPPacketTo(const int8_t* data, | 115 int32_t SendRTCPPacketTo(const int8_t* data, |
116 size_t length, | 116 size_t length, |
117 uint16_t rtcpPort) override; | 117 uint16_t rtcpPort) override; |
118 // Transport functions | 118 // Transport functions |
119 int SendPacket(const void* data, size_t length) override; | 119 bool SendRtp(const uint8_t* data, size_t length) override; |
120 int SendRTCPPacket(const void* data, size_t length) override; | 120 bool SendRtcp(const uint8_t* data, size_t length) override; |
121 | 121 |
122 // UdpTransport functions continue. | 122 // UdpTransport functions continue. |
123 int32_t SetSendIP(const char* ipaddr) override; | 123 int32_t SetSendIP(const char* ipaddr) override; |
124 int32_t SetSendPorts(const uint16_t rtpPort, | 124 int32_t SetSendPorts(const uint16_t rtpPort, |
125 const uint16_t rtcpPort = 0) override; | 125 const uint16_t rtcpPort = 0) override; |
126 | 126 |
127 ErrorCode LastError() const override; | 127 ErrorCode LastError() const override; |
128 | 128 |
129 int32_t IPAddressCached(const SocketAddress& address, | 129 int32_t IPAddressCached(const SocketAddress& address, |
130 char* ip, | 130 char* ip, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 uint16_t _rtpFilterPort; | 248 uint16_t _rtpFilterPort; |
249 uint16_t _rtcpFilterPort; | 249 uint16_t _rtcpFilterPort; |
250 | 250 |
251 UdpTransportData* _packetCallback; | 251 UdpTransportData* _packetCallback; |
252 }; | 252 }; |
253 | 253 |
254 } // namespace test | 254 } // namespace test |
255 } // namespace webrtc | 255 } // namespace webrtc |
256 | 256 |
257 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_TRANSPORT_IMPL_H_ | 257 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_TRANSPORT_IMPL_H_ |
OLD | NEW |