• 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: Need simple port scan
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Need simple port scan (From: Ashley Perrien <email@hidden>)

  • Prev by Date: NSLineBreakByClipping is not clipping
  • Next by Date: NSKeyedUnarchiver and memory management
  • Previous by thread: Need simple port scan
  • Next by thread: Re: Need simple port scan
  • Index(es):
    • Date
    • Thread