[Ecls-list] Pseudo UNIX socket for WIN32
Jachym Holecek
freza at psi.cz
Fri Feb 11 15:35:00 UTC 2005
Hi,
> Seems so. struct sockaddr_un seems to differ on FreeBSD and Linux.
>
> FreeBSD says:
> [...]
> struct sockaddr_un {
> u_char sun_len;
> u_char sun_family;
> char sun_path[104];
> };
FWIW, same on NetBSD:
struct sockaddr_un {
u_int8_t sun_len;
sa_family_t sun_family;
char sun_path[104];
};
> Debian says:
> [...]
>
> Note that UNIX_PATH_MAX does not exist on FreeBSD. :) But I still
Neither here.
> believe that is "nice" to actually fill sun_len with useful information
> on *BSD.
I think so, too. A fast look suggests all address families come with
u_int8_t length as a first member.
Regards,
-- Jachym Holecek
More information about the ecl-devel
mailing list