nlneilson Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
Contributor
steffen wrote on Tue, 23 April 2013 02:08
json-rpc server
two connections at a time.
Or am I forced to use a thread for each simultaneous JsonRpcRequest?
Hi Steffen
I didn't know so had to look up what json-rpc was so will not be much help on that.
method - A String with the name of the method to be invoked.
params - An Array of objects to be passed as parameters to the defined method.
id - A value of any type, which is used to match the response with the request that it is replying to.
Servers usually can accept multiple connections in the same thread.
I don't see where another thread would be necessary.
I just send and receive a bunch of characters up to 3000 so far.
Then I have some code for sorting and acting on what was received and when necessary reply.
What are you trying to do that is more complicated than that?