| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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_manager_posix.h" | 11 #include "webrtc/test/channel_transport/udp_socket_manager_posix.h" |
| 12 | 12 |
| 13 #include <stdio.h> | 13 #include <stdio.h> |
| 14 #include <strings.h> | 14 #include <strings.h> |
| 15 #include <sys/time.h> | 15 #include <sys/time.h> |
| 16 #include <sys/types.h> | 16 #include <sys/types.h> |
| 17 #include <time.h> | 17 #include <time.h> |
| 18 #include <unistd.h> | 18 #include <unistd.h> |
| 19 | 19 |
| 20 #include "webrtc/system_wrappers/interface/sleep.h" | 20 #include "webrtc/system_wrappers/include/sleep.h" |
| 21 #include "webrtc/system_wrappers/interface/trace.h" | 21 #include "webrtc/system_wrappers/include/trace.h" |
| 22 #include "webrtc/test/channel_transport/udp_socket_posix.h" | 22 #include "webrtc/test/channel_transport/udp_socket_posix.h" |
| 23 | 23 |
| 24 namespace webrtc { | 24 namespace webrtc { |
| 25 namespace test { | 25 namespace test { |
| 26 | 26 |
| 27 UdpSocketManagerPosix::UdpSocketManagerPosix() | 27 UdpSocketManagerPosix::UdpSocketManagerPosix() |
| 28 : UdpSocketManager(), | 28 : UdpSocketManager(), |
| 29 _id(-1), | 29 _id(-1), |
| 30 _critSect(CriticalSectionWrapper::CreateCriticalSection()), | 30 _critSect(CriticalSectionWrapper::CreateCriticalSection()), |
| 31 _numberOfSocketMgr(-1), | 31 _numberOfSocketMgr(-1), |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 if(s) { | 394 if(s) { |
| 395 _socketMap[s->GetFd()] = s; | 395 _socketMap[s->GetFd()] = s; |
| 396 } | 396 } |
| 397 } | 397 } |
| 398 _addList.clear(); | 398 _addList.clear(); |
| 399 _critSectList->Leave(); | 399 _critSectList->Leave(); |
| 400 } | 400 } |
| 401 | 401 |
| 402 } // namespace test | 402 } // namespace test |
| 403 } // namespace webrtc | 403 } // namespace webrtc |
| OLD | NEW |