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> API to send and receive data over the | 5 // Use the <code>chrome.socket</code> API to send and receive data over the |
6 // network using TCP and UDP connections. <b>Note:</b> Starting with Chrome 33, | 6 // network using TCP and UDP connections. <b>Note:</b> Starting with Chrome 33, |
7 // this API is deprecated in favor of the $ref:sockets.udp, $ref:sockets.tcp and | 7 // this API is deprecated in favor of the $ref:sockets.udp, $ref:sockets.tcp and |
8 // $ref:sockets.tcpServer APIs. | 8 // $ref:sockets.tcpServer APIs. |
9 namespace socket { | 9 namespace socket { |
10 enum SocketType { | 10 enum SocketType { |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 SetMulticastLoopbackModeCallback callback); | 330 SetMulticastLoopbackModeCallback callback); |
331 | 331 |
332 // Get the multicast group addresses the socket is currently joined to. | 332 // Get the multicast group addresses the socket is currently joined to. |
333 // |socketId| : The socketId. | 333 // |socketId| : The socketId. |
334 // |callback| : Called with an array of strings of the result. | 334 // |callback| : Called with an array of strings of the result. |
335 static void getJoinedGroups(long socketId, | 335 static void getJoinedGroups(long socketId, |
336 GetJoinedGroupsCallback callback); | 336 GetJoinedGroupsCallback callback); |
337 }; | 337 }; |
338 | 338 |
339 }; | 339 }; |
OLD | NEW |