Re: Cocoa and Telnet
Re: Cocoa and Telnet
- Subject: Re: Cocoa and Telnet
- From: Marc Weil <email@hidden>
- Date: Thu, 24 Apr 2003 08:49:21 -0400
You would have to use NSTask to launch the Telnet process (from
/usr/bin/telnet), then you would have to set up an NSPipe to get information
from the NSTask, and of course an NSFileHandle to read from the pipe.
Look at the Cocoa docs for those three classes. I believe that in the
introductory text about NSTask there is a short example on how to create a
task and pipe information from it.
-- Marc Weil
On 4/24/03 8:21 AM, "David Blanton" <email@hidden> wrote:
>
I need to connect to a Telnet session which streams data to me. I need to
>
enter logon data, username and password, and then the data comes.
>
>
How can I do this with Cocoa? I have been looking at NSURL, NSURLHandle and
>
NSNetService but cannot put my finger on the right approach.
>
>
Any examples or suggestions?
>
>
BTW, I just deployed my first Cocoa App to a customer. I could not have
>
done it as quickly without this list. Thanks to all!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.