Re: system socket library?
Re: system socket library?
- Subject: Re: system socket library?
- From: Justin Walker <email@hidden>
- Date: Fri, 21 Jan 2005 17:45:41 -0800
On Jan 21, 2005, at 14:50, Ryan M Joseph wrote:
I would like to say that the previous post I made "Sending data with
CFSocket" should be ignored. After reading over a faq I found I'm 99%
positive the sending error is because I failed to convert some of the
address struct members to network byte order.
FWIW, you are running your program on a PowerPC CPU, which is
big-endian, which is, by a happy coincidence, just what network
byte-order is defined to be (at least, for the IP family, and other
right-thinking protocols).
I tried to make a test project in CW that could make the calls to
convert to network byte order and found that I don't know where the
library is that contains the functions in the headers listed below.
Does anyone know where these can be found? Thanks for your help.
netinet/in.h
arpa/inet.h
These should be available in the system framework, which is referenced
automatically, when you compile.
If you are having a specific problem, perhaps a few details would help
(I don't feel like verifying that every call defined in these headers
is in the system framework).
Also, again, FWIW, if host- and network-byte-order are the same, it's
likely that the relevant reordering functions are no-ops.
Cheers,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | When LuteFisk is outlawed
| Only outlaws will have
| LuteFisk
*--------------------------------------*-------------------------------*
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden