Hi,
Been looking around the web for how you might resolve hostnames on Mac
OS X using OS X's sys calls to do so.
Can anyone shed any light on this ?
cheers
James
--
-- James Mills
--
-- "Problems are solved by method"
___
Pythonmac-SIG maillist - P
On Wed, Nov 03, 2010 at 11:25:49AM +1000, James Mills wrote:
> Been looking around the web for how you might resolve hostnames on Mac
> OS X using OS X's sys calls to do so.
>
> Can anyone shed any light on this ?
Try socket.gethostbyname for IPv4-only or socket.getaddrinfo for
IPv4/IPv6. For ex
On Wed, Nov 3, 2010 at 11:47 AM, Nicholas Riley wrote:
> Try socket.gethostbyname for IPv4-only or socket.getaddrinfo for
> IPv4/IPv6. For example:
>
import socket
socket.gethostbyname('mary.local')
> '192.168.71.1'
socket.getaddrinfo('bookworm.griley.members.mac.com', None,
On Wed, Nov 03, 2010 at 12:16:34PM +1000, James Mills wrote:
> The problem with this (that we have) is that when/if the dns servers change
> (example: unplug the wire, turn on the wireless) this method of resolving
> names
> isn't able to tell that the dns servers have changed quickly enough.
>
>
On Wed, Nov 3, 2010 at 12:32 PM, Nicholas Riley wrote:
> At least on my 10.5 Mac here there's a demo script in
> /Developer/Examples/Python/PyObjC/SystemConfiguration/CallbackDemo/callbacks.py
I don't seem to have a "Python" directory in /Developer/Examples/ on
my Mac (10.6.4)
cheers
James
--
On Wed, Nov 03, 2010 at 12:38:41PM +1000, James Mills wrote:
> On Wed, Nov 3, 2010 at 12:32 PM, Nicholas Riley wrote:
> > At least on my 10.5 Mac here there's a demo script in
> > /Developer/Examples/Python/PyObjC/SystemConfiguration/CallbackDemo/callbacks.py
>
> I don't seem to have a "Python" d
Hi,
I probably don't need the pyobjc-framework-ScreenSaver-2.3 but doing
an "easy_install pyobjc" tries to
download, compile and install this and fails with several errors:
Installed
/Library/Python/2.6/site-packages/pyobjc_framework_SearchKit-2.3-py2.6.egg
Searching for pyobjc-framework-ScreenS