Chromium Code Reviews| Index: mojo/services/public/interfaces/network/tcp_bound_socket.mojom |
| diff --git a/mojo/services/public/interfaces/network/tcp_bound_socket.mojom b/mojo/services/public/interfaces/network/tcp_bound_socket.mojom |
| index 0772846d502489f6d7db43878b09b073bffabe69..46f536a12c0f46218c4cb0582c7b112c7bab3ed4 100644 |
| --- a/mojo/services/public/interfaces/network/tcp_bound_socket.mojom |
| +++ b/mojo/services/public/interfaces/network/tcp_bound_socket.mojom |
| @@ -4,7 +4,7 @@ |
| import "mojo/services/public/interfaces/network/net_address.mojom" |
| import "mojo/services/public/interfaces/network/network_error.mojom" |
| -import "mojo/services/public/interfaces/network/tcp_client_socket.mojom" |
| +import "mojo/services/public/interfaces/network/tcp_connected_socket.mojom" |
| import "mojo/services/public/interfaces/network/tcp_server_socket.mojom" |
| module mojo { |
| @@ -14,17 +14,18 @@ module mojo { |
| // |
| // A bound socket can be used to create a server socket listening on the |
| // local address, or it can be used to create a client socket by connecting to |
| -// a remote host. |
| +// a remote host. Once StartListening or Connect is called on the bound socket, |
| +// the bound socket object will no longer |
|
yzshen1
2014/10/07 20:14:35
Please complete the comment.
|
| interface TCPBoundSocket { |
| // Puts the socket into server mode, awaiting incoming connections. |
| // |
| // Once this function is called, neither StartListening nor Connect can be |
| // used on this socket again. |
| - StartListening(TCPServerSocket& server); |
| + StartListening(TCPServerSocket& server) => (NetworkError result); |
| // Puts this socket into client mode by connecting to a remote host. If you |
| // do not care about the local address or port, you can call |
| - // NetworkService.CreateTCPClientSocket to connect directly and skip the |
| + // NetworkService.CreateTCPConnectedSocket to connect directly and skip the |
| // "bound" state. |
| // |
| // Once this function is called, neither StartListening nor Connect can be |
| @@ -32,7 +33,7 @@ interface TCPBoundSocket { |
| Connect(NetAddress remote_address, |
| handle<data_pipe_consumer> send_stream, |
| handle<data_pipe_producer> receive_stream, |
| - TCPClientSocket& client_socket) |
| + TCPConnectedSocket& client_socket) |
| => (NetworkError result); |
| }; |