| 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_socket2_win.h" | 11 #include "webrtc/voice_engine/test/channel_transport/udp_socket2_win.h" |
| 12 | 12 |
| 13 #include <assert.h> | 13 #include <assert.h> |
| 14 #include <stdlib.h> | 14 #include <stdlib.h> |
| 15 #include <winsock2.h> | 15 #include <winsock2.h> |
| 16 | 16 |
| 17 #include "webrtc/base/format_macros.h" | 17 #include "webrtc/base/format_macros.h" |
| 18 #include "webrtc/system_wrappers/include/sleep.h" | 18 #include "webrtc/system_wrappers/include/sleep.h" |
| 19 #include "webrtc/test/channel_transport/traffic_control_win.h" | 19 #include "webrtc/voice_engine/test/channel_transport/traffic_control_win.h" |
| 20 #include "webrtc/test/channel_transport/udp_socket2_manager_win.h" | 20 #include "webrtc/voice_engine/test/channel_transport/udp_socket2_manager_win.h" |
| 21 | 21 |
| 22 #pragma warning(disable : 4311) | 22 #pragma warning(disable : 4311) |
| 23 | 23 |
| 24 namespace webrtc { | 24 namespace webrtc { |
| 25 namespace test { | 25 namespace test { |
| 26 | 26 |
| 27 typedef struct _QOS_DESTADDR | 27 typedef struct _QOS_DESTADDR |
| 28 { | 28 { |
| 29 QOS_OBJECT_HDR ObjectHdr; | 29 QOS_OBJECT_HDR ObjectHdr; |
| 30 const struct sockaddr* SocketAddress; | 30 const struct sockaddr* SocketAddress; |
| (...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 "UdpSocket2Windows(%d)::InvalidateSocket() WSAerror: %d", | 1344 "UdpSocket2Windows(%d)::InvalidateSocket() WSAerror: %d", |
| 1345 (int32_t)this, WSAGetLastError()); | 1345 (int32_t)this, WSAGetLastError()); |
| 1346 } | 1346 } |
| 1347 _socket = INVALID_SOCKET; | 1347 _socket = INVALID_SOCKET; |
| 1348 _ptrSocketRWLock->ReleaseLockExclusive(); | 1348 _ptrSocketRWLock->ReleaseLockExclusive(); |
| 1349 return true; | 1349 return true; |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 } // namespace test | 1352 } // namespace test |
| 1353 } // namespace webrtc | 1353 } // namespace webrtc |
| OLD | NEW |