• 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: Network Address in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Network Address in Cocoa


  • Subject: Re: Network Address in Cocoa
  • From: Chris Ridd <email@hidden>
  • Date: Sat, 17 Apr 2004 09:34:10 +0100

On 17/4/04 8:13 am, Matt Jaffa <email@hidden> wrote:

> Hi,
>
> Is there a way in Cocoa to find out what the current network settings
> are?

Search the archives, but I think you want to look at the BSD layer's
getifaddrs() function. There's a man page.

> Like the network ip address range, I need my app to allow any
> connection to local network addresses but deny any ip address that is
> not outgoing to the internet?

You could also look into using TCP wrappers, which allows configuration of
that sort of thing.

> I think I understand that 0.0.0.0 - 0.0.0.255 is intercomputer
> communication. Or does anyone have any clue relating to this stuff.

Not in all cases! You have to know what the netmask is, and you also need to
consider how you're going to work with IPv6 networks.

> Mainly I need to know that above and also how to get what the network
> address is, for example 192.168.1.0 - 192.168.1.255 is my home network
> ip address range.

Cheers,

Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Network Address in Cocoa (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Re: The bitmap image type from an NSBitmapImageRep?
  • Next by Date: Re: "to-many" bindings in Interface Builder
  • Previous by thread: Network Address in Cocoa
  • Next by thread: compiler optimization level
  • Index(es):
    • Date
    • Thread