| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/socket/tcp_server_socket_libevent.h" | 5 #include "net/socket/tcp_server_socket_libevent.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <netdb.h> | 9 #include <netdb.h> |
| 10 #include <sys/socket.h> | 10 #include <sys/socket.h> |
| 11 | 11 |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 #if defined(OS_POSIX) | 14 #if defined(OS_POSIX) |
| 15 #include <netinet/in.h> | 15 #include <netinet/in.h> |
| 16 #endif | 16 #endif |
| 17 #if defined(USE_SYSTEM_LIBEVENT) | |
| 18 #include <event.h> | |
| 19 #else | |
| 20 #include "third_party/libevent/event.h" | |
| 21 #endif | |
| 22 | 17 |
| 23 #include "base/eintr_wrapper.h" | 18 #include "base/eintr_wrapper.h" |
| 24 #include "net/base/ip_endpoint.h" | 19 #include "net/base/ip_endpoint.h" |
| 25 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
| 26 #include "net/base/net_util.h" | 21 #include "net/base/net_util.h" |
| 27 #include "net/socket/tcp_client_socket.h" | 22 #include "net/socket/tcp_client_socket.h" |
| 28 | 23 |
| 29 namespace net { | 24 namespace net { |
| 30 | 25 |
| 31 namespace { | 26 namespace { |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 accept_socket_ = NULL; | 188 accept_socket_ = NULL; |
| 194 c->Run(result); | 189 c->Run(result); |
| 195 } | 190 } |
| 196 } | 191 } |
| 197 | 192 |
| 198 void TCPServerSocketLibevent::OnFileCanWriteWithoutBlocking(int fd) { | 193 void TCPServerSocketLibevent::OnFileCanWriteWithoutBlocking(int fd) { |
| 199 NOTREACHED(); | 194 NOTREACHED(); |
| 200 } | 195 } |
| 201 | 196 |
| 202 } // namespace net | 197 } // namespace net |
| OLD | NEW |