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 |
11 #include "webrtc/test/channel_transport/udp_socket_posix.h" | 11 #include "webrtc/test/channel_transport/udp_socket_posix.h" |
12 | 12 |
13 #include <errno.h> | 13 #include <errno.h> |
14 #include <fcntl.h> | 14 #include <fcntl.h> |
15 #include <netdb.h> | 15 #include <netdb.h> |
16 #include <stdio.h> | 16 #include <stdio.h> |
17 #include <string.h> | 17 #include <string.h> |
18 #include <sys/ioctl.h> | 18 #include <sys/ioctl.h> |
19 #include <sys/types.h> | 19 #include <sys/types.h> |
20 #include <time.h> | 20 #include <time.h> |
21 #include <unistd.h> | 21 #include <unistd.h> |
22 | 22 |
23 #include "webrtc/system_wrappers/interface/trace.h" | 23 #include "webrtc/system_wrappers/include/trace.h" |
24 #include "webrtc/test/channel_transport/udp_socket_manager_wrapper.h" | 24 #include "webrtc/test/channel_transport/udp_socket_manager_wrapper.h" |
25 #include "webrtc/test/channel_transport/udp_socket_wrapper.h" | 25 #include "webrtc/test/channel_transport/udp_socket_wrapper.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 namespace test { | 28 namespace test { |
29 UdpSocketPosix::UdpSocketPosix(const int32_t id, UdpSocketManager* mgr, | 29 UdpSocketPosix::UdpSocketPosix(const int32_t id, UdpSocketManager* mgr, |
30 bool ipV6Enable) : _id(id) | 30 bool ipV6Enable) : _id(id) |
31 { | 31 { |
32 WEBRTC_TRACE(kTraceMemory, kTraceTransport, id, | 32 WEBRTC_TRACE(kTraceMemory, kTraceTransport, id, |
33 "UdpSocketPosix::UdpSocketPosix()"); | 33 "UdpSocketPosix::UdpSocketPosix()"); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 WEBRTC_TRACE(kTraceDebug, kTraceTransport, _id, | 276 WEBRTC_TRACE(kTraceDebug, kTraceTransport, _id, |
277 "calling UdpSocketManager::RemoveSocket()..."); | 277 "calling UdpSocketManager::RemoveSocket()..."); |
278 _mgr->RemoveSocket(this); | 278 _mgr->RemoveSocket(this); |
279 // After this, the socket should may be or will be as deleted. Return | 279 // After this, the socket should may be or will be as deleted. Return |
280 // immediately. | 280 // immediately. |
281 return true; | 281 return true; |
282 } | 282 } |
283 | 283 |
284 } // namespace test | 284 } // namespace test |
285 } // namespace webrtc | 285 } // namespace webrtc |
OLD | NEW |