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

Unified Diff: net/socket/tcp_client_socket_win.h

Issue 22861033: Move server socket functionality from TCPServerSocket into TCPSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
Index: net/socket/tcp_client_socket_win.h
diff --git a/net/socket/tcp_client_socket_win.h b/net/socket/tcp_client_socket_win.h
index 26c8b9feff2ba67734d7de458dc17fa7f13f0927..99042505b9a032ab4b7991045857008cb91bbefb 100644
--- a/net/socket/tcp_client_socket_win.h
+++ b/net/socket/tcp_client_socket_win.h
@@ -32,9 +32,10 @@ class NET_EXPORT TCPClientSocketWin : public StreamSocket,
// AdoptSocket causes the given, connected socket to be adopted as a TCP
// socket. This object must not be connected. This object takes ownership of
- // the given socket and then acts as if Connect() had been called. This
- // function is used by TCPServerSocket() to adopt accepted connections
- // and for testing.
+ // the given socket and then acts as if Connect() had been called. On failure,
+ // the given socket is closed.
+ // This function is used by TCPServerSocket to adopt accepted connections and
+ // for testing.
int AdoptSocket(SOCKET socket);
// Binds the socket to a local IP address and port.

Powered by Google App Engine
This is Rietveld 408576698