| Index: net/socket/tcp_socket_win.h
|
| diff --git a/net/socket/tcp_socket_win.h b/net/socket/tcp_socket_win.h
|
| index f886d33c14ed4710b23f38e34d662c98d2d9a0c0..2ddd538f211ff5ddcd8e0fe0e6d3f00cb36bcaca 100644
|
| --- a/net/socket/tcp_socket_win.h
|
| +++ b/net/socket/tcp_socket_win.h
|
| @@ -31,8 +31,13 @@ class NET_EXPORT TCPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe),
|
| virtual ~TCPSocketWin();
|
|
|
| int Open(AddressFamily family);
|
| - // Takes ownership of |socket|.
|
| +
|
| + // Both AdoptConnectedSocket and AdoptListenSocket take ownership of an
|
| + // existing socket. AdoptConnectedSocket takes an already connected
|
| + // socket. AdoptListenSocket takes a socket that is intended to accept
|
| + // connection. In some sense, AdoptListenSocket is more similar to Open.
|
| int AdoptConnectedSocket(SOCKET socket, const IPEndPoint& peer_address);
|
| + int AdoptListenSocket(SOCKET socket);
|
|
|
| int Bind(const IPEndPoint& address);
|
|
|
|
|