• Post Reply Bookmark Topic Watch Topic
  • New Topic

Telnet Client  RSS feed

 
simone giusti
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
i have a class implementing socket.
Each time I call TelnetCMD, the command is sent to server. After that, I don't why app disconnets from server.
I would like to have a routine connecting to server and stay connected. Then, I would like to call TelnetCMD several times and then disconnect when I decide to, creating another routine TelnetCLOSE.
Can you help me ??


 
Knute Snortum
Sheriff
Posts: 3556
86
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to more this to our Sockets forum.
 
Tim Moores
Saloon Keeper
Posts: 3512
77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For building a Telnet client you might also want to check out the Apache Commons Net library, which includes a Telnet client. That library should work fine on Android.
 
simone giusti
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:For building a Telnet client you might also want to check out the Apache Commons Net library, which includes a Telnet client. That library should work fine on Android.



I tried but 'import TelnetNotificationHandler' gives the error 'can't resolve symbol'


Any hints concerning my first question will be appreciated !!
 
Knute Snortum
Sheriff
Posts: 3556
86
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a URL that may help you: a telnet example using Apache Commons.

I tried but 'import TelnetNotificationHandler' gives the error 'can't resolve symbol'

You need a full package name such as:

and of course you need the jar installed somewhere it can be reached.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!