[...]
I misunderstood a note on the linux manpage for accept, thinking int is the proper type.
It's one of Linus's famous rants, the original BSD accept() parameter was int then the standards committee made it size_t but when it was pointed out that this was a different size on some systems the committee called it a socklen_t because they couldn't admit their original mistake. :)
Cheers Lex