wxSocket on Mac - use of Hostname fails
Hugo Jackson
hugojackson at speedfactory.net
Wed Jul 4 12:11:28 PDT 2007
wxIPV4address.Hostname() accepts either an address in either dot quad
notation or a fully qualified domain name, and works equally well on
the mac as the ip.
however, on the mac you cannot bind an interface to a wxSocketServer,
so you need to use wxIPV4address.AnyAddress() in order to set the
address for a new instance of wxSocketServer.
On Jul 4, 2007, at 1:54 PM, David Mathews wrote:
> I have all my network code running on the Mac, but it can't call
> back when finished by using the hostname like the PC versions can.
> It works if I give it the current ip address, but this changes daily.
>
> Does anyone know how to make a hostname (machine name) work from
> the Mac?
> How to enable a Mac to find a machine by its network name rather
> than current ip address?
>
> Thanks,
> David
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
More information about the wx-users
mailing list