| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the <code>PPB_Flash_TCPSocket</code> interface. | 7 * This file defines the <code>PPB_Flash_TCPSocket</code> interface. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 label Chrome { | 10 label Chrome { |
| 11 M15 = 0.2 | 11 M15 = 0.2 |
| 12 }; | 12 }; |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * This is an opaque type holding a network address. | |
| 16 */ | |
| 17 [assert_size(132)] | |
| 18 struct PP_Flash_NetAddress { | |
| 19 uint32_t size; | |
| 20 char[128] data; | |
| 21 }; | |
| 22 | |
| 23 /** | |
| 24 * The <code>PPB_Flash_TCPSocket</code> interface provides TCP socket | 15 * The <code>PPB_Flash_TCPSocket</code> interface provides TCP socket |
| 25 * operations. | 16 * operations. |
| 26 */ | 17 */ |
| 27 interface PPB_Flash_TCPSocket { | 18 interface PPB_Flash_TCPSocket { |
| 28 /** | 19 /** |
| 29 * Allocates a TCP socket resource. | 20 * Allocates a TCP socket resource. |
| 30 */ | 21 */ |
| 31 PP_Resource Create([in] PP_Instance instance); | 22 PP_Resource Create([in] PP_Instance instance); |
| 32 | 23 |
| 33 /** | 24 /** |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 /** | 105 /** |
| 115 * Cancels any IO that may be pending, and disconnects the socket. Any pending | 106 * Cancels any IO that may be pending, and disconnects the socket. Any pending |
| 116 * callbacks will still run, reporting PP_Error_Aborted if pending IO was | 107 * callbacks will still run, reporting PP_Error_Aborted if pending IO was |
| 117 * interrupted. It is NOT valid to call Connect() again after a call to this | 108 * interrupted. It is NOT valid to call Connect() again after a call to this |
| 118 * method. Note: If the socket is destroyed when it is still connected, then | 109 * method. Note: If the socket is destroyed when it is still connected, then |
| 119 * it will be implicitly disconnected, so you are not required to call this | 110 * it will be implicitly disconnected, so you are not required to call this |
| 120 * method. | 111 * method. |
| 121 */ | 112 */ |
| 122 void Disconnect([in] PP_Resource tcp_socket); | 113 void Disconnect([in] PP_Resource tcp_socket); |
| 123 }; | 114 }; |
| 124 | |
| OLD | NEW |