java and telnet
1 posts in topic
Flat View  Flat View

Posted By:   Boban_S
Posted On:   Tuesday, June 26, 2001 04:34 PM

I have some application that send data (characters) only to telnet. I wondering if it's possible to build a java (server) program which simulate telnet ? I have tried to build (with ports telenet use) but it does not work...Is there somethig particular with telent that makes it impossible to simmulate with java server program ?
grateful for help...

Re: java and telnet

Posted By:   Kimmo_Wikman  
Posted On:   Wednesday, June 27, 2001 05:05 AM

There shouldn't be any issues of creating a telnet server with java.
If have created
a "telnet" server to control my java program. I can connect it with telnet and
then remotely administer my java program. First you must create

ServerSocket to listen to telnet port.

Then you get the socket from ServerSocket.accept()
when client comes.
Then you just create the input and output -streams
and you can send and receive characters. There are lot of examples about this on the net.
About | Sitemap | Contact