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 |
5 namespace socket { | 8 namespace socket { |
6 enum SocketType { | 9 enum SocketType { |
7 tcp, | 10 tcp, |
8 udp | 11 udp |
9 }; | 12 }; |
10 | 13 |
11 // The socket options. | 14 // The socket options. |
12 dictionary CreateOptions { | 15 dictionary CreateOptions { |
13 }; | 16 }; |
14 | 17 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // |callback| : Called when the state is available. | 249 // |callback| : Called when the state is available. |
247 static void getInfo(long socketId, | 250 static void getInfo(long socketId, |
248 GetInfoCallback callback); | 251 GetInfoCallback callback); |
249 | 252 |
250 // Retrieves information about local adapters on this system. | 253 // Retrieves information about local adapters on this system. |
251 // |callback| : Called when local adapter information is available. | 254 // |callback| : Called when local adapter information is available. |
252 static void getNetworkList(GetNetworkCallback callback); | 255 static void getNetworkList(GetNetworkCallback callback); |
253 }; | 256 }; |
254 | 257 |
255 }; | 258 }; |
OLD | NEW |