TSocket Connection with JAVA Client?

Hi all;

I’m building an application that helps generating C++ macros from a user interface then sending it and executing it in ROOT command line. The purpose is to allow exchanging queries and results between GUI and ROOT.

In order to realize this, I’ve started working with the TSocket class in ROOT.
I had no issue creating the TSocket server (written with C language) , but I need to have a TSocket Client in JAVA and still couldn’t find a way to do it.

Is there any API that Allows socket communication between a TSocket Server and a JAVA Socket Client?
If not, what are the other alternatives in order to insure it?

Thank you for your consideration.