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

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

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
« no previous file with comments | « webrtc/test/channel_transport/udp_transport_impl.h ('k') | webrtc/test/direct_transport.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after
1924 { 1924 {
1925 return _ptrSendRtcpSocket->SendTo(data,length,to); 1925 return _ptrSendRtcpSocket->SendTo(data,length,to);
1926 1926
1927 } else if(_ptrRtcpSocket) 1927 } else if(_ptrRtcpSocket)
1928 { 1928 {
1929 return _ptrRtcpSocket->SendTo(data,length,to); 1929 return _ptrRtcpSocket->SendTo(data,length,to);
1930 } 1930 }
1931 return -1; 1931 return -1;
1932 } 1932 }
1933 1933
1934 bool UdpTransportImpl::SendRtp(const uint8_t* data, size_t length) { 1934 bool UdpTransportImpl::SendRtp(const uint8_t* data,
1935 size_t length,
1936 const PacketOptions& packet_options) {
1935 WEBRTC_TRACE(kTraceStream, kTraceTransport, _id, "%s", __FUNCTION__); 1937 WEBRTC_TRACE(kTraceStream, kTraceTransport, _id, "%s", __FUNCTION__);
1936 1938
1937 CriticalSectionScoped cs(_crit); 1939 CriticalSectionScoped cs(_crit);
1938 1940
1939 if(_destIP[0] == 0) 1941 if(_destIP[0] == 0)
1940 { 1942 {
1941 return false; 1943 return false;
1942 } 1944 }
1943 if(_destPort == 0) 1945 if(_destPort == 0)
1944 { 1946 {
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
2983 if (nDots != 3 || !allUnder256) 2985 if (nDots != 3 || !allUnder256)
2984 { 2986 {
2985 return false; 2987 return false;
2986 } 2988 }
2987 } 2989 }
2988 return true; 2990 return true;
2989 } 2991 }
2990 2992
2991 } // namespace test 2993 } // namespace test
2992 } // namespace webrtc 2994 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/channel_transport/udp_transport_impl.h ('k') | webrtc/test/direct_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698