On Sep 7, 2009, at 1:56 PM, Ashley Perrien wrote:
I'm very new to networking via cocoa and need to develop a small port scanner application. The core of it is very simple, is address 1.2.3.4 listening on port X. I've done a bit of looking on NSStream, pipes, tasks and such but hopefully what I'm trying to get is a short and sweet. What specifically should I be checking into or does anyone happen to have a snippet of code that does the above?
Does it have to be a Cocoa API? You should be able to use the Unix BSD sockets API, which IMHO if you're looking for "short and sweet" you might as well use.
If you really want a Cocoa API, then I think NSSocketPort is probably what you're looking for. Alternatively, use NSStream's class method "+ getStreamsToHost:port:inputStream:outputStream:".
Pete _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
