Re: Need simple port scan
Re: Need simple port scan
- Subject: Re: Need simple port scan
- From: Peter Duniho <email@hidden>
- Date: Mon, 7 Sep 2009 14:45:47 -0700
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@hidden)
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:
This email sent to email@hidden