Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_tcp_socket_private.srpc

Issue 8555002: Added NaCl proxy for TCP/UDP (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Deleted PPAPI NaCl tests. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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': 'PpbTCPSocketPrivateRpc',
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', 'int32_t'], # PP_Bool
21 ]
22 },
23 {'name': 'PPB_TCPSocket_Private_Connect',
24 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource
25 ['host', 'string'], # const char*
26 ['port', 'int32_t'], # uint16_t
27 ['callback_id', 'int32_t'], # PP_CompletionCallback
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'], # PP_CompletionCallback
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', 'string'], # const char*
57 ['server_port', 'int32_t'], # uint16_t
58 ['callback_id', 'int32_t'], # PP_CompletionCallback
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'], # PP_CompletionCallback
67 ],
68 'outputs': [['buffer', 'char[]'], # 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[]'], # const char*
75 ['bytes_to_write', 'int32_t'],
76 ['callback_id', 'int32_t'], # PP_CompletionCallback
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698