• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Telnet Client

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ??


 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm going to more this to our Sockets forum.
 
Saloon Keeper
Posts: 7582
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic