Re: socklen_t
Re: socklen_t
- Subject: Re: socklen_t
- From: Chilton Webb <email@hidden>
- Date: Thu, 9 Aug 2001 15:43:31 -0500
Thanks Jonathan, #define socklen_t int did the trick.
-Chilton
On Thursday, August 9, 2001, at 03:27 PM, Jonathan Stimmel wrote:
On Thu, Aug 09, 2001 at 03:10:52PM -0500, Chilton Webb wrote:
I'm trying to include some sockets code from Stevens' Unix Network
Programming book and it's choking on "socklen_t". According to the
book,
this is a fairly standard variable type. Do I need to include a
particular header file that I normally (on Unix) would not? Thoughts?
Check the man page for the function you're trying to use; there's a
little bit of variation from OS to OS. For instance, "man bind" on
Solaris 2.7 shows:
int bind(int s, const struct sockaddr *name, socklen_t
*namelen);
but on OS X:
int bind(int s, const struct sockaddr *name, int namelen)
The man pages also list the header files you need (sys/types.h and
sys/socket.h).
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
References: | |
| >Re: socklen_t (From: Jonathan Stimmel <email@hidden>) |