• 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: Jonathan Stimmel <email@hidden>
  • Date: Thu, 9 Aug 2001 13:27:27 -0700
  • Mail-followup-to: Jonathan Stimmel <email@hidden>, email@hidden

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


  • Follow-Ups:
    • Re: socklen_t
      • From: Chilton Webb <email@hidden>
References: 
 >socklen_t (From: Chilton Webb <email@hidden>)

  • Prev by Date: socklen_t
  • Next by Date: button target action getting called on nib instantiation, why?
  • Previous by thread: socklen_t
  • Next by thread: Re: socklen_t
  • Index(es):
    • Date
    • Thread