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

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

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/tcp_socket_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/tcp_socket_util.cc
diff --git a/net/tools/flip_server/create_listener.cc b/net/tools/flip_server/tcp_socket_util.cc
similarity index 97%
rename from net/tools/flip_server/create_listener.cc
rename to net/tools/flip_server/tcp_socket_util.cc
index 9b417ea4f704611569d30cebf626ebaec4c0570b..922535a72001e2f363e59bf5660a612eeb3eb114 100644
--- a/net/tools/flip_server/create_listener.cc
+++ b/net/tools/flip_server/tcp_socket_util.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "net/tools/flip_server/create_listener.h"
+#include "net/tools/flip_server/tcp_socket_util.h"
#include <arpa/inet.h>
#include <errno.h>
@@ -70,8 +70,7 @@ int SetDisableNagle(int fd) {
return 1;
}
-// see header for documentation of this function.
-int CreateListeningSocket(const std::string& host,
+int CreateTCPServerSocket(const std::string& host,
const std::string& port,
bool is_numeric_host_address,
int backlog,
@@ -207,7 +206,7 @@ int CreateListeningSocket(const std::string& host,
return 0;
}
-int CreateConnectedSocket(int* connect_fd,
+int CreateTCPClientSocket(int* connect_fd,
const std::string& host,
const std::string& port,
bool is_numeric_host_address,
« no previous file with comments | « net/tools/flip_server/tcp_socket_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698