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 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |