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