views:

62

answers:

2

I'm just wondering...

I've downloaded this App called "Telnet Lite" for the iPhone where you can connect to your devices through Telnet. You just give up the IP address, server port, username & password. Works great.

Now I'm wondering how this can be done (in code) on the iPhone. Can someone post a sample code where you establish a connection? I've seen aSynckSocket but I still don't know how to connect and where to give up the username & password for the device...?

Thanks!

+1  A: 

Choosing a socket framework/class/layer/whatever is only the first step. You need to review the Telnet RFCs -- there's a good list on the Wikipedia page) -- that will detail the protocol you'll need to implement on your (client) side.

Shaggy Frog
A: 

Usually the way those clients work is to silently send up the username/password over the telnet connection when they detect the login prompt - then after that point you are shown what the server sends.

Kendall Helmstetter Gelner