Re: Network Address in Cocoa
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.