Tech Support > Operating Systems > Linux / Variants > Creating a socket with System.in
Creating a socket with System.in
Posted by FET on February 27th, 2004


Hello everyone,
I am trying to get xinetd to run my Java application. Xinetd passes
the socket to the java Application as the standard input stream
System.in.
In C++, one can use the socket descriptor 0 to refer to this and
perform IO operations.
In java, System.in is an InputStream. How do I do IO ? I mean, what
data structure do I use to perform IO on this InputStream as if it
were a socket ?
Please help me.

Thanks in advance,

Regards.


Similar Posts