• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa and Telnet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Cocoa and Telnet (From: David Blanton <email@hidden>)

  • Prev by Date: Re: Animating an image sequence
  • Next by Date: Re: Cocoa and Telnet
  • Previous by thread: Cocoa and Telnet
  • Next by thread: Re: Cocoa and Telnet
  • Index(es):
    • Date
    • Thread