| 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 | 5 |
| 6 /* From private/ppb_tcp_server_socket_private.idl, | 6 /* From private/ppb_tcp_server_socket_private.idl, |
| 7 * modified Tue Feb 14 12:24:48 2012. | 7 * modified Thu Mar 28 10:31:11 2013. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #ifndef PPAPI_C_PRIVATE_PPB_TCP_SERVER_SOCKET_PRIVATE_H_ | 10 #ifndef PPAPI_C_PRIVATE_PPB_TCP_SERVER_SOCKET_PRIVATE_H_ |
| 11 #define PPAPI_C_PRIVATE_PPB_TCP_SERVER_SOCKET_PRIVATE_H_ | 11 #define PPAPI_C_PRIVATE_PPB_TCP_SERVER_SOCKET_PRIVATE_H_ |
| 12 | 12 |
| 13 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
| 14 #include "ppapi/c/pp_completion_callback.h" | 14 #include "ppapi/c/pp_completion_callback.h" |
| 15 #include "ppapi/c/pp_instance.h" | 15 #include "ppapi/c/pp_instance.h" |
| 16 #include "ppapi/c/pp_macros.h" | 16 #include "ppapi/c/pp_macros.h" |
| 17 #include "ppapi/c/pp_resource.h" | 17 #include "ppapi/c/pp_resource.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 */ | 58 */ |
| 59 int32_t (*Listen)(PP_Resource tcp_server_socket, | 59 int32_t (*Listen)(PP_Resource tcp_server_socket, |
| 60 const struct PP_NetAddress_Private* addr, | 60 const struct PP_NetAddress_Private* addr, |
| 61 int32_t backlog, | 61 int32_t backlog, |
| 62 struct PP_CompletionCallback callback); | 62 struct PP_CompletionCallback callback); |
| 63 /** | 63 /** |
| 64 * Accepts single connection, creates instance of | 64 * Accepts single connection, creates instance of |
| 65 * PPB_TCPSocket_Private and stores reference to it in | 65 * PPB_TCPSocket_Private and stores reference to it in |
| 66 * |tcp_socket|. |callback| is invoked when connection is accepted | 66 * |tcp_socket|. |callback| is invoked when connection is accepted |
| 67 * or in the case of failure. This method can be called only after | 67 * or in the case of failure. This method can be called only after |
| 68 * succesfull Listen call on |tcp_server_socket|. | 68 * successful Listen call on |tcp_server_socket|. |
| 69 */ | 69 */ |
| 70 int32_t (*Accept)(PP_Resource tcp_server_socket, | 70 int32_t (*Accept)(PP_Resource tcp_server_socket, |
| 71 PP_Resource* tcp_socket, | 71 PP_Resource* tcp_socket, |
| 72 struct PP_CompletionCallback callback); | 72 struct PP_CompletionCallback callback); |
| 73 /** | 73 /** |
| 74 * Cancels all pending callbacks reporting PP_ERROR_ABORTED and | 74 * Cancels all pending callbacks reporting PP_ERROR_ABORTED and |
| 75 * closes the socket. Note: this method is implicitly called when | 75 * closes the socket. Note: this method is implicitly called when |
| 76 * server socket is destroyed. | 76 * server socket is destroyed. |
| 77 */ | 77 */ |
| 78 void (*StopListening)(PP_Resource tcp_server_socket); | 78 void (*StopListening)(PP_Resource tcp_server_socket); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 typedef struct PPB_TCPServerSocket_Private_0_1 PPB_TCPServerSocket_Private; | 81 typedef struct PPB_TCPServerSocket_Private_0_1 PPB_TCPServerSocket_Private; |
| 82 /** | 82 /** |
| 83 * @} | 83 * @} |
| 84 */ | 84 */ |
| 85 | 85 |
| 86 #endif /* PPAPI_C_PRIVATE_PPB_TCP_SERVER_SOCKET_PRIVATE_H_ */ | 86 #endif /* PPAPI_C_PRIVATE_PPB_TCP_SERVER_SOCKET_PRIVATE_H_ */ |
| 87 | 87 |
| OLD | NEW |