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 /** | 6 /** |
7 * This file defines the <code>PPB_TCPServerSocket_Private</code> interface. | 7 * This file defines the <code>PPB_TCPServerSocket_Private</code> interface. |
8 */ | 8 */ |
9 | 9 |
10 label Chrome { | 10 label Chrome { |
(...skipping 28 matching lines...) Expand all Loading... |
39 int32_t Listen([in] PP_Resource tcp_server_socket, | 39 int32_t Listen([in] PP_Resource tcp_server_socket, |
40 [in] PP_NetAddress_Private addr, | 40 [in] PP_NetAddress_Private addr, |
41 [in] int32_t backlog, | 41 [in] int32_t backlog, |
42 [in] PP_CompletionCallback callback); | 42 [in] PP_CompletionCallback callback); |
43 | 43 |
44 /** | 44 /** |
45 * Accepts single connection, creates instance of | 45 * Accepts single connection, creates instance of |
46 * PPB_TCPSocket_Private and stores reference to it in | 46 * PPB_TCPSocket_Private and stores reference to it in |
47 * |tcp_socket|. |callback| is invoked when connection is accepted | 47 * |tcp_socket|. |callback| is invoked when connection is accepted |
48 * or in the case of failure. This method can be called only after | 48 * or in the case of failure. This method can be called only after |
49 * succesfull Listen call on |tcp_server_socket|. | 49 * successful Listen call on |tcp_server_socket|. |
50 */ | 50 */ |
51 int32_t Accept([in] PP_Resource tcp_server_socket, | 51 int32_t Accept([in] PP_Resource tcp_server_socket, |
52 [out] PP_Resource tcp_socket, | 52 [out] PP_Resource tcp_socket, |
53 [in] PP_CompletionCallback callback); | 53 [in] PP_CompletionCallback callback); |
54 | 54 |
55 /** | 55 /** |
56 * Cancels all pending callbacks reporting PP_ERROR_ABORTED and | 56 * Cancels all pending callbacks reporting PP_ERROR_ABORTED and |
57 * closes the socket. Note: this method is implicitly called when | 57 * closes the socket. Note: this method is implicitly called when |
58 * server socket is destroyed. | 58 * server socket is destroyed. |
59 */ | 59 */ |
60 void StopListening([in] PP_Resource tcp_server_socket); | 60 void StopListening([in] PP_Resource tcp_server_socket); |
61 }; | 61 }; |
OLD | NEW |