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. |
5 namespace socket { | 7 namespace socket { |
6 enum SocketType { | 8 enum SocketType { |
7 tcp, | 9 tcp, |
8 udp | 10 udp |
9 }; | 11 }; |
10 | 12 |
11 // The socket options. | 13 // The socket options. |
12 dictionary CreateOptions { | 14 dictionary CreateOptions { |
13 }; | 15 }; |
14 | 16 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 SetMulticastLoopbackModeCallback callback); | 325 SetMulticastLoopbackModeCallback callback); |
324 | 326 |
325 // Get the multicast group addresses the socket is currently joined to. | 327 // Get the multicast group addresses the socket is currently joined to. |
326 // |socketId| : The socketId. | 328 // |socketId| : The socketId. |
327 // |callback| : Called with an array of strings of the result. | 329 // |callback| : Called with an array of strings of the result. |
328 static void getJoinedGroups(long socketId, | 330 static void getJoinedGroups(long socketId, |
329 GetJoinedGroupsCallback callback); | 331 GetJoinedGroupsCallback callback); |
330 }; | 332 }; |
331 | 333 |
332 }; | 334 }; |
OLD | NEW |