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

Side by Side Diff: mojo/services/network/public/interfaces/tcp_bound_socket.mojom

Issue 1129063008: Move mojom definitions of URL{Request,Response} into SDK (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: update for monet Created 5 years, 7 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 unified diff | Download patch
OLDNEW
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 module mojo; 5 module mojo;
6 6
7 import "mojo/public/interfaces/network/network_error.mojom";
7 import "network/public/interfaces/net_address.mojom"; 8 import "network/public/interfaces/net_address.mojom";
8 import "network/public/interfaces/network_error.mojom";
9 import "network/public/interfaces/tcp_connected_socket.mojom"; 9 import "network/public/interfaces/tcp_connected_socket.mojom";
10 import "network/public/interfaces/tcp_server_socket.mojom"; 10 import "network/public/interfaces/tcp_server_socket.mojom";
11 11
12 // Represents a TCP socket that is bound to a local address and port, but 12 // Represents a TCP socket that is bound to a local address and port, but
13 // is not yet in a listening or connected state. 13 // is not yet in a listening or connected state.
14 // 14 //
15 // A bound socket can be used to create a server socket listening on the 15 // A bound socket can be used to create a server socket listening on the
16 // local address, or it can be used to create a client socket by connecting to 16 // local address, or it can be used to create a client socket by connecting to
17 // a remote host. Once StartListening or Connect is called on the bound socket, 17 // a remote host. Once StartListening or Connect is called on the bound socket,
18 // ownership of the underlying socket will be transferred to the connected or 18 // ownership of the underlying socket will be transferred to the connected or
(...skipping 11 matching lines...) Expand all
30 // "bound" state. 30 // "bound" state.
31 // 31 //
32 // Once this function is called, neither StartListening nor Connect can be 32 // Once this function is called, neither StartListening nor Connect can be
33 // used on this socket again. 33 // used on this socket again.
34 Connect(NetAddress remote_address, 34 Connect(NetAddress remote_address,
35 handle<data_pipe_consumer> send_stream, 35 handle<data_pipe_consumer> send_stream,
36 handle<data_pipe_producer> receive_stream, 36 handle<data_pipe_producer> receive_stream,
37 TCPConnectedSocket& client_socket) 37 TCPConnectedSocket& client_socket)
38 => (NetworkError result); 38 => (NetworkError result);
39 }; 39 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698