• 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: Ashley Perrien <email@hidden>
  • Date: Mon, 7 Sep 2009 17:38:11 -0500

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.

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.

Doesn't need to be cocoa I guess, as long as it ends with a yes or no, that should be fine.


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:".

I'll look at that again but when I did before it seemed to need lots of support around it (creating pipes and streams, archiving data to files, etc.) that I was hoping to avoid having to learn about, or find some kind of simple tutorials on it as much of that is well beyond what I've been doing thus far.


Ashley


_______________________________________________

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


  • Prev by Date: Re: (no subject)
  • Next by Date: Anti-aliasing in Snow Leopard (10.6) PDFView
  • Previous by thread: Re: Need simple port scan
  • Next by thread: Re: Need simple port scan
  • Index(es):
    • Date
    • Thread