Re: [Dev-C++] Socket Programming - Newbie - sockaddr 16 bytes?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Obi <ob...@ch...> - 2004-11-07 06:51:14
|
At 02:06 07/11/2004 -0200, Daniel K. O. wrote: >Krzysztof Kapu=C5=9Bcik wrote: > >>This is not exactly true. The BSD standard says that the AF_ value will=20 >>be the same as PF_ value (this could be found on linux man pages). > >Hm... really? From what I remember, it says they are *generally* the same,= =20 >but I may be wrong. >I'm curious now, does anyone know if it's possible to find on the internet= =20 >exactly what the BSD standard says? (for free, obviously... I don't want=20 >to buy a book, I'm not THAT curious) This is getting confusing now, the linux manpage lists the PF_ values, but= =20 refers to AF_ later on. The BSD manpage I found uses AF_ http://www.neosoft.com/neosoft/man/socket.2.html .. int socket(int domain, int type, int protocol) .. The domain parameter specifies a communications domain within which=20 communication will take place; this selects the protocol family which=20 should be used. These families are defined in the include file=20 <sys/socket.h>. The currently understood formats are .. AF_UNIX (UNIX internal protocols), AF_INET (ARPA Internet protocols), AF_ISO.... Hmmmmm. Also the Win32 docs call this parameter "address family" rather than=20 "protocol family".I don't have access to BSD or POSIX specs so I don't know= =20 the official line. It's a mystery.:-) |