开发者

Telnet connection on iPhone

I'm just wondering...

I've downloaded this App called "Telnet Lite" for the iPhone where you can connect to开发者_如何学Go 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!


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜