[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: any portability issues with socklen_t ?
From: Oswald Buddenhagen <ossi () kde ! org>
Date: 2001-10-24 21:51:56
[Download RAW message or body]
> ksize_t clilen(sizeof(clientAddress));
> bzero((char*)&clientAddress, clilen);
> int connFD=::accept(m_listenFD,(struct sockaddr *) &clientAddress, &clilen);
>
> I think there was probably a reason to use "ksize_t" and not "int" and not
> "socklen_t".
>
yes ... ignorance, i guess. :)
> So, can I use socklen_t safely or will it break compilation on some
> platforms?
>
socklen_t is ok; we had a long thread about that some time ago. our
config.h cares for it.
greetings
--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic