| 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..973afc3bbf4eead49097a43ab2aa22ab90539d51 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,19 @@ 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,
|
| +// ownership of the underlying socket will be transferred to the connected or
|
| +// server socket, and the bound socket may be closed.
|
| 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 +34,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);
|
| };
|
|
|
|
|