Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: webrtc/test/channel_transport/udp_transport_impl.h

Issue 1376673004: Add a PacketOptions struct to webrtc::Transport. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comment added Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 bool SendRtp(const uint8_t* data, size_t length) override; 119 bool SendRtp(const uint8_t* data,
120 size_t length,
121 const PacketOptions& packet_options) override;
120 bool SendRtcp(const uint8_t* data, size_t length) override; 122 bool SendRtcp(const uint8_t* data, size_t length) override;
121 123
122 // UdpTransport functions continue. 124 // UdpTransport functions continue.
123 int32_t SetSendIP(const char* ipaddr) override; 125 int32_t SetSendIP(const char* ipaddr) override;
124 int32_t SetSendPorts(const uint16_t rtpPort, 126 int32_t SetSendPorts(const uint16_t rtpPort,
125 const uint16_t rtcpPort = 0) override; 127 const uint16_t rtcpPort = 0) override;
126 128
127 ErrorCode LastError() const override; 129 ErrorCode LastError() const override;
128 130
129 int32_t IPAddressCached(const SocketAddress& address, 131 int32_t IPAddressCached(const SocketAddress& address,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 uint16_t _rtpFilterPort; 250 uint16_t _rtpFilterPort;
249 uint16_t _rtcpFilterPort; 251 uint16_t _rtcpFilterPort;
250 252
251 UdpTransportData* _packetCallback; 253 UdpTransportData* _packetCallback;
252 }; 254 };
253 255
254 } // namespace test 256 } // namespace test
255 } // namespace webrtc 257 } // namespace webrtc
256 258
257 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_TRANSPORT_IMPL_H_ 259 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_TRANSPORT_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc ('k') | webrtc/test/channel_transport/udp_transport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698