| 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/tools/flip_server/acceptor_thread.h" | 5 #include "net/tools/flip_server/acceptor_thread.h" |
| 6 | 6 |
| 7 #include <errno.h> |
| 7 #include <netinet/in.h> | 8 #include <netinet/in.h> |
| 8 #include <netinet/tcp.h> // For TCP_NODELAY | 9 #include <netinet/tcp.h> // For TCP_NODELAY |
| 9 #include <sys/socket.h> | 10 #include <sys/socket.h> |
| 10 #include <sys/types.h> | 11 #include <sys/types.h> |
| 11 | 12 |
| 12 #include <string> | 13 #include <string> |
| 13 | 14 |
| 14 #include "net/tools/flip_server/constants.h" | 15 #include "net/tools/flip_server/constants.h" |
| 15 #include "net/tools/flip_server/flip_config.h" | 16 #include "net/tools/flip_server/flip_config.h" |
| 16 #include "net/tools/flip_server/sm_connection.h" | 17 #include "net/tools/flip_server/sm_connection.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 AcceptFromListenFD(); | 203 AcceptFromListenFD(); |
| 203 } | 204 } |
| 204 } | 205 } |
| 205 | 206 |
| 206 void SMAcceptorThread::SMConnectionDone(SMConnection* sc) { | 207 void SMAcceptorThread::SMConnectionDone(SMConnection* sc) { |
| 207 VLOG(1) << ACCEPTOR_CLIENT_IDENT << "Done with connection."; | 208 VLOG(1) << ACCEPTOR_CLIENT_IDENT << "Done with connection."; |
| 208 tmp_unused_server_connections_.push_back(sc); | 209 tmp_unused_server_connections_.push_back(sc); |
| 209 } | 210 } |
| 210 | 211 |
| 211 } // namespace net | 212 } // namespace net |
| OLD | NEW |