Post
by Izhido » Wed May 27, 2009 12:04 am
Hi!
Most functions in the network library (if not all) actually, in case of error, do not return -1, but -(whatever errno is set to). That is, -EINVAL, -EWOULDBLOCK, -ETIMEOUT, and so on. That explains the value you're getting from your call.
I'm almost sure that's not the expected behaviour of the Berkeley Sockets API... but remember, this is *not* that API.
Hoping this helps,
- Izhido