Module: sems Branch: master Commit: edd2fa1cc0a0dfcb2088cfc72d183c81d17b8c7c URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=edd2fa1cc0a0dfcb2088cfc72d183c81d17b8c7c
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Mon Jul 12 11:46:25 2010 +0200 jsonrpc: support for per request user data Due to the multiplexing of requests from several sources on to json-rpc connections, when Jsonrpc requests are sent, the application can not know the request ID which is to be used. A new AmArg parameter to jsonrpc sendMessage and execRpc functions can provide user data, which is copied into the response event, and thus can be matched to the request in the application. --- apps/dsm/DSMCall.cpp | 11 ++++++++--- apps/dsm/DSMSession.h | 3 ++- apps/dsm/SystemDSM.cpp | 9 +++++++-- apps/jsonrpc/JsonRPC.cpp | 16 +++++++++++++--- apps/jsonrpc/JsonRPCEvents.h | 15 +++++++++------ apps/jsonrpc/JsonRPCServer.cpp | 17 +++++++++++------ apps/jsonrpc/JsonRPCServer.h | 3 ++- apps/jsonrpc/RpcPeer.cpp | 4 ++-- apps/jsonrpc/RpcPeer.h | 4 +++- apps/jsonrpc/RpcServerLoop.cpp | 12 ++++++------ apps/jsonrpc/RpcServerLoop.h | 6 ++++-- apps/jsonrpc/RpcServerThread.cpp | 3 ++- 12 files changed, 69 insertions(+), 34 deletions(-) Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commitdiff;h=edd2fa1cc0a0dfcb2088cfc72d183c81d17b8c7c _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
