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

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

Issue 1335353005: Remove channel ids from various interfaces. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 3 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/mock_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 int UdpTransportImpl::SendPacket(int /*channel*/, 1934 int UdpTransportImpl::SendPacket(const void* data, size_t length) {
1935 const void* data,
1936 size_t length)
1937 {
1938 WEBRTC_TRACE(kTraceStream, kTraceTransport, _id, "%s", __FUNCTION__); 1935 WEBRTC_TRACE(kTraceStream, kTraceTransport, _id, "%s", __FUNCTION__);
1939 1936
1940 CriticalSectionScoped cs(_crit); 1937 CriticalSectionScoped cs(_crit);
1941 1938
1942 if(_destIP[0] == 0) 1939 if(_destIP[0] == 0)
1943 { 1940 {
1944 return -1; 1941 return -1;
1945 } 1942 }
1946 if(_destPort == 0) 1943 if(_destPort == 0)
1947 { 1944 {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1993 _remoteRTPAddr); 1990 _remoteRTPAddr);
1994 1991
1995 } else if(_ptrRtpSocket) 1992 } else if(_ptrRtpSocket)
1996 { 1993 {
1997 return _ptrRtpSocket->SendTo((const int8_t*)data, length, 1994 return _ptrRtpSocket->SendTo((const int8_t*)data, length,
1998 _remoteRTPAddr); 1995 _remoteRTPAddr);
1999 } 1996 }
2000 return -1; 1997 return -1;
2001 } 1998 }
2002 1999
2003 int UdpTransportImpl::SendRTCPPacket(int /*channel*/, const void* data, 2000 int UdpTransportImpl::SendRTCPPacket(const void* data, size_t length) {
2004 size_t length)
2005 {
2006
2007 CriticalSectionScoped cs(_crit); 2001 CriticalSectionScoped cs(_crit);
2008 if(_destIP[0] == 0) 2002 if(_destIP[0] == 0)
2009 { 2003 {
2010 return -1; 2004 return -1;
2011 } 2005 }
2012 if(_destPortRTCP == 0) 2006 if(_destPortRTCP == 0)
2013 { 2007 {
2014 return -1; 2008 return -1;
2015 } 2009 }
2016 2010
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
2989 if (nDots != 3 || !allUnder256) 2983 if (nDots != 3 || !allUnder256)
2990 { 2984 {
2991 return false; 2985 return false;
2992 } 2986 }
2993 } 2987 }
2994 return true; 2988 return true;
2995 } 2989 }
2996 2990
2997 } // namespace test 2991 } // namespace test
2998 } // namespace webrtc 2992 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/channel_transport/udp_transport_impl.h ('k') | webrtc/test/mock_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698