| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 17 |
| 18 #include "base/eintr_wrapper.h" | 18 #include "base/posix/eintr_wrapper.h" |
| 19 #include "net/base/ip_endpoint.h" | 19 #include "net/base/ip_endpoint.h" |
| 20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
| 21 #include "net/base/net_util.h" | 21 #include "net/base/net_util.h" |
| 22 #include "net/socket/socket_net_log_params.h" | 22 #include "net/socket/socket_net_log_params.h" |
| 23 #include "net/socket/tcp_client_socket.h" | 23 #include "net/socket/tcp_client_socket.h" |
| 24 | 24 |
| 25 namespace net { | 25 namespace net { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 accept_callback_.Reset(); | 207 accept_callback_.Reset(); |
| 208 callback.Run(result); | 208 callback.Run(result); |
| 209 } | 209 } |
| 210 } | 210 } |
| 211 | 211 |
| 212 void TCPServerSocketLibevent::OnFileCanWriteWithoutBlocking(int fd) { | 212 void TCPServerSocketLibevent::OnFileCanWriteWithoutBlocking(int fd) { |
| 213 NOTREACHED(); | 213 NOTREACHED(); |
| 214 } | 214 } |
| 215 | 215 |
| 216 } // namespace net | 216 } // namespace net |
| OLD | NEW |