Re: Scalable, 10.2 compatible socket usage
Re: Scalable, 10.2 compatible socket usage
- Subject: Re: Scalable, 10.2 compatible socket usage
- From: Sherm Pendley <email@hidden>
- Date: Wed, 28 Sep 2005 20:10:06 -0400
On Sep 28, 2005, at 7:15 PM, Andrew Bush wrote:
Im attempting to write a command line application that is
compatible with 10.2, and can makeoutward tcp connections to
various servers...there will likely be upwards of 100 or so
'simultaneous' connections to 100 or so different servers, the
connections will often be transferring a fair bit of data back and
forward in a non-standard protocol.
whats the best connection method to use? I was originally looking
at NSInputStream, but it turns out thats 10.3+ only....<g> and
there is certainly a bunch of options to choose from....
so any recommendations as to the most appropriate set of classes to
use?
You can use the socket() function to create a socket-based file
descriptor, and pass that to NSFileHandle's -initWithFileDescriptor:
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden