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/voice_engine/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/include/trace.h" | 23 #include "webrtc/system_wrappers/include/trace.h" |
24 #include "webrtc/test/channel_transport/udp_socket_manager_wrapper.h" | 24 #include "webrtc/voice_engine/test/channel_transport/udp_socket_manager_wrapper.
h" |
25 #include "webrtc/test/channel_transport/udp_socket_wrapper.h" | 25 #include "webrtc/voice_engine/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) | 30 bool ipV6Enable) |
31 : _id(id), | 31 : _id(id), |
32 _closeBlockingCompletedCond(true, false), | 32 _closeBlockingCompletedCond(true, false), |
33 _readyForDeletionCond(true, false) | 33 _readyForDeletionCond(true, false) |
34 { | 34 { |
35 WEBRTC_TRACE(kTraceMemory, kTraceTransport, id, | 35 WEBRTC_TRACE(kTraceMemory, kTraceTransport, id, |
(...skipping 226 matching lines...) Loading... |
262 WEBRTC_TRACE(kTraceDebug, kTraceTransport, _id, | 262 WEBRTC_TRACE(kTraceDebug, kTraceTransport, _id, |
263 "calling UdpSocketManager::RemoveSocket()..."); | 263 "calling UdpSocketManager::RemoveSocket()..."); |
264 _mgr->RemoveSocket(this); | 264 _mgr->RemoveSocket(this); |
265 // After this, the socket should may be or will be as deleted. Return | 265 // After this, the socket should may be or will be as deleted. Return |
266 // immediately. | 266 // immediately. |
267 return true; | 267 return true; |
268 } | 268 } |
269 | 269 |
270 } // namespace test | 270 } // namespace test |
271 } // namespace webrtc | 271 } // namespace webrtc |
OLD | NEW |