| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
| 6 module mojo; | 6 module mojo; |
| 7 | 7 |
| 8 import "mojo/public/interfaces/network/network_error.mojom"; | 8 import "mojo/public/interfaces/network/network_error.mojom"; |
| 9 import "network/interfaces/net_address.mojom"; | 9 import "network/interfaces/net_address.mojom"; |
| 10 import "network/interfaces/tcp_connected_socket.mojom"; | 10 import "network/interfaces/tcp_connected_socket.mojom"; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // used on this socket again. | 25 // used on this socket again. |
| 26 StartListening(TCPServerSocket& server) => (NetworkError result); | 26 StartListening(TCPServerSocket& server) => (NetworkError result); |
| 27 | 27 |
| 28 // Puts this socket into client mode by connecting to a remote host. If you | 28 // Puts this socket into client mode by connecting to a remote host. If you |
| 29 // do not care about the local address or port, you can call | 29 // do not care about the local address or port, you can call |
| 30 // NetworkService.CreateTCPConnectedSocket to connect directly and skip the | 30 // NetworkService.CreateTCPConnectedSocket to connect directly and skip the |
| 31 // "bound" state. | 31 // "bound" state. |
| 32 // | 32 // |
| 33 // Once this function is called, neither StartListening nor Connect can be | 33 // Once this function is called, neither StartListening nor Connect can be |
| 34 // used on this socket again. | 34 // used on this socket again. |
| 35 Connect(NetAddress remote_address, | 35 Connect(NetAddress remote_address, handle<data_pipe_consumer> send_stream, han
dle<data_pipe_producer> receive_stream, TCPConnectedSocket& client_socket) => (N
etworkError result); |
| 36 handle<data_pipe_consumer> send_stream, | |
| 37 handle<data_pipe_producer> receive_stream, | |
| 38 TCPConnectedSocket& client_socket) | |
| 39 => (NetworkError result); | |
| 40 }; | 36 }; |
| OLD | NEW |