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

Unified 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: Rebase Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/src/shared/ppapi_proxy/ppb_tcp_socket_private.srpc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/ppb_tcp_socket_private.srpc b/ppapi/native_client/src/shared/ppapi_proxy/ppb_tcp_socket_private.srpc
new file mode 100644
index 0000000000000000000000000000000000000000..3795d4abbcc5c81e1360c5513dda51bc43942318
--- /dev/null
+++ b/ppapi/native_client/src/shared/ppapi_proxy/ppb_tcp_socket_private.srpc
@@ -0,0 +1,87 @@
+# Copyright (c) 2011 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+# RPC methods used to implement PPB_TCPSocket_Private calls from the plugin.
+# See ppapi/c/private/ppb_tcp_socket_private.h for interface details.
+
+{
+ '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.
+ 'rpcs': [
+ {'name': 'PPB_TCPSocket_Private_Create',
+ 'inputs': [['instance', 'PP_Instance'], # PP_Instance
+ ],
+ 'outputs': [['resource', 'PP_Resource'], # PP_Resource
+ ]
+ },
+ {'name': 'PPB_TCPSocket_Private_IsTCPSocket',
+ 'inputs': [['resource', 'PP_Resource'], # PP_Resource
+ ],
+ 'outputs': [['is_tcp_socket_private', 'int32_t'], # PP_Bool
+ ]
+ },
+ {'name': 'PPB_TCPSocket_Private_Connect',
+ 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource
+ ['host', 'char[]'],
+ ['port', 'int32_t'],
+ ['callback_id', 'int32_t'],
+ ],
+ 'outputs': [['pp_error', 'int32_t'],
+ ]
+ },
+ {'name': 'PPB_TCPSocket_Private_ConnectWithNetAddress',
+ 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource
+ ['addr', 'char[]'], # PP_NetAddress_Private*
+ ['callback_id', 'int32_t'],
+ ],
+ 'outputs': [['pp_error', 'int32_t'],
+ ]
+ },
+ {'name': 'PPB_TCPSocket_Private_GetLocalAddress',
+ 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource
+ ],
+ 'outputs': [['local_addr', 'char[]'], # PP_NetAddress_Private*
+ ['success', 'int32_t'], # PP_Bool
+ ]
+ },
+ {'name': 'PPB_TCPSocket_Private_GetRemoteAddress',
+ 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource
+ ],
+ 'outputs': [['remote_addr', 'char[]'], # PP_NetAddress_Private*
+ ['success', 'int32_t'], # PP_Bool
+ ]
+ },
+ {'name': 'PPB_TCPSocket_Private_SSLHandshake',
+ 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource
+ ['server_name', 'char[]'],
+ ['server_port', 'int32_t'],
+ ['callback_id', 'int32_t'],
+ ],
+ 'outputs': [['pp_error', 'int32_t'],
+ ]
+ },
+ {'name': 'PPB_TCPSocket_Private_Read',
+ 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource
+ ['bytes_to_read', 'int32_t'],
+ ['callback_id', 'int32_t'],
+ ],
+ 'outputs': [['buffer', 'char[]'],
+ ['pp_error_or_bytes', 'int32_t'],
+ ]
+ },
+ {'name': 'PPB_TCPSocket_Private_Write',
+ 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource
+ ['buffer', 'char[]'],
+ ['bytes_to_write', 'int32_t'],
+ ['callback_id', 'int32_t']
+ ],
+ 'outputs': [['pp_error_or_bytes', 'int32_t']
+ ]
+ },
+ {'name': 'PPB_TCPSocket_Private_Disconnect',
+ 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource
+ ],
+ 'outputs': []
+ },
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698