Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: net/tools/flip_server/tcp_socket_util.h

Issue 1684443002: flip_server: rename create_listener.* for clarity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/flip_server/sm_connection.cc ('k') | net/tools/flip_server/tcp_socket_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/tcp_socket_util.h
diff --git a/net/tools/flip_server/create_listener.h b/net/tools/flip_server/tcp_socket_util.h
similarity index 87%
rename from net/tools/flip_server/create_listener.h
rename to net/tools/flip_server/tcp_socket_util.h
index cb9d1501f801cb854ad1957a984c0183c8924fe2..2a0909286e086e124be8435252dbc49ac3a301fb 100644
--- a/net/tools/flip_server/create_listener.h
+++ b/net/tools/flip_server/tcp_socket_util.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NET_TOOLS_FLIP_SERVER_CREATE_LISTENER_H_
-#define NET_TOOLS_FLIP_SERVER_CREATE_LISTENER_H_
+#ifndef NET_TOOLS_FLIP_SERVER_TCP_SOCKET_UTIL_H_
+#define NET_TOOLS_FLIP_SERVER_TCP_SOCKET_UTIL_H_
#include <string>
@@ -27,13 +27,13 @@ namespace net {
// the OS starts rejecting new incoming connections.
// reuseaddr - if true sets SO_REUSEADDR on the listening socket
// reuseport - if true sets SO_REUSEPORT on the listening socket
-// wait_for_iface - A boolean indicating that CreateListeningSocket should
+// wait_for_iface - A boolean indicating that CreateTCPServerSocket should
// block until the interface that it will bind to has been
// raised. This is intended for HA environments.
// disable_nagle - if true sets TCP_NODELAY on the listening socket.
// listen_fd - this will be assigned a positive value if the socket is
// successfully created, else it will be assigned -1.
-int CreateListeningSocket(const std::string& host,
+int CreateTCPServerSocket(const std::string& host,
const std::string& port,
bool is_numeric_host_address,
int backlog,
@@ -43,7 +43,7 @@ int CreateListeningSocket(const std::string& host,
bool disable_nagle,
int* listen_fd);
-int CreateConnectedSocket(int* connect_fd,
+int CreateTCPClientSocket(int* connect_fd,
const std::string& host,
const std::string& port,
bool is_numeric_host_address,
@@ -51,4 +51,4 @@ int CreateConnectedSocket(int* connect_fd,
} // namespace net
-#endif // NET_TOOLS_FLIP_SERVER_CREATE_LISTENER_H_
+#endif // NET_TOOLS_FLIP_SERVER_TCP_SOCKET_UTIL_H_
« no previous file with comments | « net/tools/flip_server/sm_connection.cc ('k') | net/tools/flip_server/tcp_socket_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698