Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
What is the use of socklen_t and why it is used.
Posted

1 solution

It is a type definition for length and size values used by socket related parameters, return values and structure members. Such definitions are used to allow platform independant source files. The header file where it is defined (sys/socket.h) may use different definitions according to the target platform (e.g. for 16, 32, and 64 bit CPUs).

See also http://pubs.opengroup.org/onlinepubs/009696699/basedefs/sys/socket.h.html[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900