OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004--2005, Google Inc. | 3 * Copyright 2004--2005, Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 #ifdef WIN32 | 35 #ifdef WIN32 |
36 #include <winsock2.h> | 36 #include <winsock2.h> |
37 #include <ws2tcpip.h> | 37 #include <ws2tcpip.h> |
38 #define _WINSOCKAPI_ | 38 #define _WINSOCKAPI_ |
39 #include <windows.h> | 39 #include <windows.h> |
40 #define SECURITY_WIN32 | 40 #define SECURITY_WIN32 |
41 #include <security.h> | 41 #include <security.h> |
42 #endif | 42 #endif |
43 | 43 |
| 44 #include <cstring> |
| 45 |
44 #include "talk/base/basicdefs.h" | 46 #include "talk/base/basicdefs.h" |
45 #include "talk/base/bytebuffer.h" | 47 #include "talk/base/bytebuffer.h" |
46 #include "talk/base/common.h" | 48 #include "talk/base/common.h" |
47 #include "talk/base/httpcommon.h" | 49 #include "talk/base/httpcommon.h" |
48 #include "talk/base/logging.h" | 50 #include "talk/base/logging.h" |
49 #include "talk/base/socketadapters.h" | 51 #include "talk/base/socketadapters.h" |
50 #include "talk/base/stringencode.h" | 52 #include "talk/base/stringencode.h" |
51 #include "talk/base/stringutils.h" | 53 #include "talk/base/stringutils.h" |
52 | 54 |
53 #ifdef WIN32 | 55 #ifdef WIN32 |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 | 670 |
669 void | 671 void |
670 LoggingSocketAdapter::OnCloseEvent(AsyncSocket * socket, int err) { | 672 LoggingSocketAdapter::OnCloseEvent(AsyncSocket * socket, int err) { |
671 LOG_V(level_) << label_ << " Closed with error: " << err; | 673 LOG_V(level_) << label_ << " Closed with error: " << err; |
672 AsyncSocketAdapter::OnCloseEvent(socket, err); | 674 AsyncSocketAdapter::OnCloseEvent(socket, err); |
673 } | 675 } |
674 | 676 |
675 /////////////////////////////////////////////////////////////////////////////// | 677 /////////////////////////////////////////////////////////////////////////////// |
676 | 678 |
677 } // namespace talk_base | 679 } // namespace talk_base |
OLD | NEW |