On 04/08/2011 08:19 AM, Martin Sustrik wrote: > Maybe a cleaner way would be to put few hard-wired bytes at the > beginning of the socket structure and check those in each function, > returning EFAULT if it does not match. Oops. I meant ENOTSOCK, obviously, to mimic the POSIX behaviour. Martin