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

Side by Side Diff: mojo/services/network/interfaces/tcp_server_socket.mojom

Issue 1404443004: Move //mojo/services/network/public/interfaces to //mojo/services/network/interfaces. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add some missing dependencies Created 5 years, 2 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 [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/public/interfaces/net_address.mojom"; 9 import "network/interfaces/net_address.mojom";
10 import "network/public/interfaces/tcp_connected_socket.mojom"; 10 import "network/interfaces/tcp_connected_socket.mojom";
11 11
12 // Represents a TCP server socket listening for incoming requests. 12 // Represents a TCP server socket listening for incoming requests.
13 interface TCPServerSocket { 13 interface TCPServerSocket {
14 // Waits for an incoming connection request and hooks up a TCPConnectedSocket 14 // Waits for an incoming connection request and hooks up a TCPConnectedSocket
15 // for connecting with the remote host. Only one Accept call can be pending 15 // for connecting with the remote host. Only one Accept call can be pending
16 // at a time. 16 // at a time.
17 // 17 //
18 // Once a connection has been established (indicated by a successful 18 // Once a connection has been established (indicated by a successful
19 // callback), the TCPConnectedSocket may outlive the TCPServerSocket that 19 // callback), the TCPConnectedSocket may outlive the TCPServerSocket that
20 // created it. 20 // created it.
21 // 21 //
22 // On success, the address of the remote host will be provided. 22 // On success, the address of the remote host will be provided.
23 Accept(handle<data_pipe_consumer> send_stream, 23 Accept(handle<data_pipe_consumer> send_stream,
24 handle<data_pipe_producer> receive_stream, 24 handle<data_pipe_producer> receive_stream,
25 TCPConnectedSocket& client_socket) 25 TCPConnectedSocket& client_socket)
26 => (NetworkError result, NetAddress? remote_address); 26 => (NetworkError result, NetAddress? remote_address);
27 }; 27 };
OLDNEW
« no previous file with comments | « mojo/services/network/interfaces/tcp_connected_socket.mojom ('k') | mojo/services/network/interfaces/udp_socket.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698