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

Side by Side Diff: mojo/services/network/interfaces/udp_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 10
11 // UDPSocket and UDPSocketReceiver represent a UDP socket and its client. The 11 // UDPSocket and UDPSocketReceiver represent a UDP socket and its client. The
12 // typical flow of using the interfaces is: 12 // typical flow of using the interfaces is:
13 // - Acquire a UDPSocket interface pointer. 13 // - Acquire a UDPSocket interface pointer.
14 // - (optional) Set options which are allowed prior to Bind()/Connect(). 14 // - (optional) Set options which are allowed prior to Bind()/Connect().
15 // - Bind or connect the socket. 15 // - Bind or connect the socket.
16 // - (optional) Bind the UDPSocketReceiver request returned by Bind()/Connect() 16 // - (optional) Bind the UDPSocketReceiver request returned by Bind()/Connect()
17 // - (optional) Set options which are allowed after Bind()/Connect(). 17 // - (optional) Set options which are allowed after Bind()/Connect().
18 // - Send / request to receive datagrams. Received datagrams will be delivered 18 // - Send / request to receive datagrams. Received datagrams will be delivered
19 // to the bound receiver's OnReceived() call. 19 // to the bound receiver's OnReceived() call.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 SendTo(NetAddress? dest_addr, array<uint8> data) => (NetworkError result); 112 SendTo(NetAddress? dest_addr, array<uint8> data) => (NetworkError result);
113 }; 113 };
114 114
115 interface UDPSocketReceiver { 115 interface UDPSocketReceiver {
116 // On success, |data| is non-null, |src_addr| is non-null if the socket is 116 // On success, |data| is non-null, |src_addr| is non-null if the socket is
117 // not connected, |result.code| is a non-negative number indicating how many 117 // not connected, |result.code| is a non-negative number indicating how many
118 // bytes have been received. On failure, |result.code| is a network error 118 // bytes have been received. On failure, |result.code| is a network error
119 // code. 119 // code.
120 OnReceived(NetworkError result, NetAddress? src_addr, array<uint8>? data); 120 OnReceived(NetworkError result, NetAddress? src_addr, array<uint8>? data);
121 }; 121 };
OLDNEW
« no previous file with comments | « mojo/services/network/interfaces/tcp_server_socket.mojom ('k') | mojo/services/network/interfaces/url_loader.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698