OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Use the <code>chrome.socket</code> module to send and receive data over the |
| 6 // network using TCP and UDP connections. |
| 7 |
| 8 [availability=24] |
5 namespace socket { | 9 namespace socket { |
6 enum SocketType { | 10 enum SocketType { |
7 tcp, | 11 tcp, |
8 udp | 12 udp |
9 }; | 13 }; |
10 | 14 |
11 // The socket options. | 15 // The socket options. |
12 dictionary CreateOptions { | 16 dictionary CreateOptions { |
13 }; | 17 }; |
14 | 18 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // |callback| : Called when the state is available. | 250 // |callback| : Called when the state is available. |
247 static void getInfo(long socketId, | 251 static void getInfo(long socketId, |
248 GetInfoCallback callback); | 252 GetInfoCallback callback); |
249 | 253 |
250 // Retrieves information about local adapters on this system. | 254 // Retrieves information about local adapters on this system. |
251 // |callback| : Called when local adapter information is available. | 255 // |callback| : Called when local adapter information is available. |
252 static void getNetworkList(GetNetworkCallback callback); | 256 static void getNetworkList(GetNetworkCallback callback); |
253 }; | 257 }; |
254 | 258 |
255 }; | 259 }; |
OLD | NEW |