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

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

Issue 683583002: Update mojo sdk to rev e083961bf11fd0c94d40be8853761da529b6d444 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: geolocation Created 6 years, 1 month 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 import "mojo/services/public/interfaces/network/net_address.mojom" 5 import "mojo/services/public/interfaces/network/net_address.mojom";
6 import "mojo/services/public/interfaces/network/network_error.mojom" 6 import "mojo/services/public/interfaces/network/network_error.mojom";
7 7
8 module mojo { 8 module mojo {
9 9
10 // UDPSocket and UDPSocketClient represent a UDP socket and its client. The 10 // UDPSocket and UDPSocketClient represent a UDP socket and its client. The
11 // typical flow of using the interfaces is: 11 // typical flow of using the interfaces is:
12 // - Acquire a UDPSocket interface pointer and set a UDPSocketClient instance. 12 // - Acquire a UDPSocket interface pointer and set a UDPSocketClient instance.
13 // - (optional) Set options which are allowed prior to Bind(). 13 // - (optional) Set options which are allowed prior to Bind().
14 // - Bind the socket. 14 // - Bind the socket.
15 // - (optional) Set options which are allowed after Bind(). 15 // - (optional) Set options which are allowed after Bind().
16 // - Send / request to receive datagrams. Received datagrams will be delivered 16 // - Send / request to receive datagrams. Received datagrams will be delivered
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 }; 99 };
100 100
101 interface UDPSocketClient { 101 interface UDPSocketClient {
102 // On success, |src_addr| and |data| are non-NULL, and |result.code| is a 102 // On success, |src_addr| and |data| are non-NULL, and |result.code| is a
103 // non-negative number indicating how many bytes have been received. On 103 // non-negative number indicating how many bytes have been received. On
104 // failure, |result.code| is a network error code. 104 // failure, |result.code| is a network error code.
105 OnReceived(NetworkError result, NetAddress? src_addr, array<uint8>? data); 105 OnReceived(NetworkError result, NetAddress? src_addr, array<uint8>? data);
106 }; 106 };
107 107
108 } 108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698