Re: Bah, Networking Woes!
Re: Bah, Networking Woes!
- Subject: Re: Bah, Networking Woes!
- From: Douglas Davidson <email@hidden>
- Date: Tue, 10 Jul 2001 09:11:19 -0700
On Tuesday, July 10, 2001, at 03:04 AM, Graham Wihlidal wrote:
CFSocketConnectToAddress(s, addr, 0);
From the header:
Addresses are stored as CFDatas containing a struct sockaddr
appropriate for the protocol family; make sure that all fields are
filled in properly when passing in an address.
In this case, addr should be a CFData containing a struct sockaddr_in.
You need to do the hostname resolution yourself.
Douglas Davidson