OLD | NEW |
---|---|
(Empty) | |
1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 # | |
5 # RPC methods used to implement PPB_TCPSocket_Private calls from the plugin. | |
6 # See ppapi/c/private/ppb_tcp_socket_private.h for interface details. | |
7 | |
8 { | |
9 'name': 'Ppb_TCPSocketPrivate', | |
polina
2011/11/18 09:52:10
our convention is no _ after Ppb and RpcServer at
ygorshenin
2011/11/21 14:13:33
Done.
| |
10 'rpcs': [ | |
11 {'name': 'PPB_TCPSocket_Private_Create', | |
12 'inputs': [['instance', 'PP_Instance'], # PP_Instance | |
13 ], | |
14 'outputs': [['resource', 'PP_Resource'], # PP_Resource | |
15 ] | |
16 }, | |
17 {'name': 'PPB_TCPSocket_Private_IsTCPSocket', | |
18 'inputs': [['resource', 'PP_Resource'], # PP_Resource | |
19 ], | |
20 'outputs': [['is_tcp_socket_private', 'int32_t'], # PP_Bool | |
21 ] | |
22 }, | |
23 {'name': 'PPB_TCPSocket_Private_Connect', | |
24 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource | |
25 ['host', 'char[]'], | |
26 ['port', 'int32_t'], | |
27 ['callback_id', 'int32_t'], | |
28 ], | |
29 'outputs': [['pp_error', 'int32_t'], | |
30 ] | |
31 }, | |
32 {'name': 'PPB_TCPSocket_Private_ConnectWithNetAddress', | |
33 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource | |
34 ['addr', 'char[]'], # PP_NetAddress_Private* | |
35 ['callback_id', 'int32_t'], | |
36 ], | |
37 'outputs': [['pp_error', 'int32_t'], | |
38 ] | |
39 }, | |
40 {'name': 'PPB_TCPSocket_Private_GetLocalAddress', | |
41 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource | |
42 ], | |
43 'outputs': [['local_addr', 'char[]'], # PP_NetAddress_Private* | |
44 ['success', 'int32_t'], # PP_Bool | |
45 ] | |
46 }, | |
47 {'name': 'PPB_TCPSocket_Private_GetRemoteAddress', | |
48 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource | |
49 ], | |
50 'outputs': [['remote_addr', 'char[]'], # PP_NetAddress_Private* | |
51 ['success', 'int32_t'], # PP_Bool | |
52 ] | |
53 }, | |
54 {'name': 'PPB_TCPSocket_Private_SSLHandshake', | |
55 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource | |
56 ['server_name', 'char[]'], | |
57 ['server_port', 'int32_t'], | |
58 ['callback_id', 'int32_t'], | |
59 ], | |
60 'outputs': [['pp_error', 'int32_t'], | |
61 ] | |
62 }, | |
63 {'name': 'PPB_TCPSocket_Private_Read', | |
64 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource | |
65 ['bytes_to_read', 'int32_t'], | |
66 ['callback_id', 'int32_t'], | |
67 ], | |
68 'outputs': [['buffer', 'char[]'], | |
69 ['pp_error_or_bytes', 'int32_t'], | |
70 ] | |
71 }, | |
72 {'name': 'PPB_TCPSocket_Private_Write', | |
73 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource | |
74 ['buffer', 'char[]'], | |
75 ['bytes_to_write', 'int32_t'], | |
76 ['callback_id', 'int32_t'] | |
77 ], | |
78 'outputs': [['pp_error_or_bytes', 'int32_t'] | |
79 ] | |
80 }, | |
81 {'name': 'PPB_TCPSocket_Private_Disconnect', | |
82 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource | |
83 ], | |
84 'outputs': [] | |
85 }, | |
86 ] | |
87 } | |
OLD | NEW |