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 11 matching lines...) Expand all Loading... |
22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #if defined(_MSC_VER) && _MSC_VER < 1300 | 28 #if defined(_MSC_VER) && _MSC_VER < 1300 |
29 #pragma warning(disable:4786) | 29 #pragma warning(disable:4786) |
30 #endif | 30 #endif |
31 | 31 |
| 32 #include <cstring> |
| 33 |
32 #include "talk/base/asynctcpsocket.h" | 34 #include "talk/base/asynctcpsocket.h" |
33 #include "talk/base/byteorder.h" | 35 #include "talk/base/byteorder.h" |
34 #include "talk/base/common.h" | 36 #include "talk/base/common.h" |
35 #include "talk/base/logging.h" | 37 #include "talk/base/logging.h" |
36 | 38 |
37 #if defined(_MSC_VER) && _MSC_VER < 1300 | 39 #if defined(_MSC_VER) && _MSC_VER < 1300 |
38 namespace std { | 40 namespace std { |
39 using ::strerror; | 41 using ::strerror; |
40 } | 42 } |
41 #endif | 43 #endif |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 if (outpos_ > 0) { | 193 if (outpos_ > 0) { |
192 Flush(); | 194 Flush(); |
193 } | 195 } |
194 } | 196 } |
195 | 197 |
196 void AsyncTCPSocket::OnCloseEvent(AsyncSocket* socket, int error) { | 198 void AsyncTCPSocket::OnCloseEvent(AsyncSocket* socket, int error) { |
197 SignalClose(this, error); | 199 SignalClose(this, error); |
198 } | 200 } |
199 | 201 |
200 } // namespace talk_base | 202 } // namespace talk_base |
OLD | NEW |