Re: Telnet Networking Example
Re: Telnet Networking Example
- Subject: Re: Telnet Networking Example
- From: Jens Alfke <email@hidden>
- Date: Wed, 22 Jul 2009 13:31:34 -0700
On Jul 22, 2009, at 12:41 PM, DerNalia wrote:
I've been looking at NSStream for interfacing with a server that
accepts telnet connections, and haven't made much progress in my
understanding of how exactly to send / receive the commands /
responses.
Telnet is basically just sending keystrokes over the socket. So you
open the socket, send your command as ASCII bytes over the output
stream followed by a newline, then receive the response from the input
stream.
So I was wondering if there was is a framework or something that is
a bit easier to use than NSStream...
What are you having trouble with in particular? Have you looked at
Apple's sample code, especially CocoaEcho?
Eli Bach wrote:
You could try using libcurl. It supposedly has some support for
telnet, but you'll probably still have to wind up doing some parsing
of the data the server returns.
I don't think this would be any different than using NSStream, except
for the impedance mismatch of talking to a raw C API...
Lance Robinson wrote:
You might be interested in using /n software's IPWorks product:
A $300 proprietary library seems kind of like overkill for a newbie
who just wants to send and receive telnet data. :)
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden