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