Is there a request–response networking API for Java? -


i'm looking simple java library enable write code in following fashion:

remote remote = remote.connect("some_host:1234");  future<string> response = remote.request("hello"); // else string reply = response.get(); 

it should based on tcp/ip , use plain text messages across network language agnostic, non-java servers able send/receive requests/responses.

(before telling me use plain sockets, keep in mind in case need implement wrappers delimit payload, care received messages reordering, thread handling... example simple, not trivial implement well.)

is there existing api out there this?

ps: ...the simpler, better!

take @ jms.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -