• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: socklen_t
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: 10.1 - stop it right now (Re: newbie question on contextual menus)
  • Next by Date: Re: newbie question on contextual menus
  • Previous by thread: Re: socklen_t
  • Next by thread: button target action getting called on nib instantiation, why?
  • Index(es):
    • Date
    • Thread