| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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/rtc_base/win32socketserver.h" | 11 #include "webrtc/base/win32socketserver.h" |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <ws2tcpip.h> // NOLINT | 14 #include <ws2tcpip.h> // NOLINT |
| 15 | 15 |
| 16 #include "webrtc/rtc_base/byteorder.h" | 16 #include "webrtc/base/byteorder.h" |
| 17 #include "webrtc/rtc_base/checks.h" | 17 #include "webrtc/base/checks.h" |
| 18 #include "webrtc/rtc_base/logging.h" | 18 #include "webrtc/base/logging.h" |
| 19 #include "webrtc/rtc_base/win32window.h" | 19 #include "webrtc/base/win32window.h" |
| 20 | 20 |
| 21 namespace rtc { | 21 namespace rtc { |
| 22 | 22 |
| 23 /////////////////////////////////////////////////////////////////////////////// | 23 /////////////////////////////////////////////////////////////////////////////// |
| 24 // Win32Socket | 24 // Win32Socket |
| 25 /////////////////////////////////////////////////////////////////////////////// | 25 /////////////////////////////////////////////////////////////////////////////// |
| 26 | 26 |
| 27 // TODO: Move this to a common place where PhysicalSocketServer can | 27 // TODO: Move this to a common place where PhysicalSocketServer can |
| 28 // share it. | 28 // share it. |
| 29 // Standard MTUs | 29 // Standard MTUs |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 bool handled = false; | 825 bool handled = false; |
| 826 if (wm == s_wm_wakeup_id || (wm == WM_TIMER && wp == 1)) { | 826 if (wm == s_wm_wakeup_id || (wm == WM_TIMER && wp == 1)) { |
| 827 ss_->Pump(); | 827 ss_->Pump(); |
| 828 lr = 0; | 828 lr = 0; |
| 829 handled = true; | 829 handled = true; |
| 830 } | 830 } |
| 831 return handled; | 831 return handled; |
| 832 } | 832 } |
| 833 | 833 |
| 834 } // namespace rtc | 834 } // namespace rtc |
| OLD | NEW |