Hi everyone, I'm fairly new to libogc, and am currently working with the network functions. I was wondering if anyone knows if net_accept is supposed to return -1 or not. On mine for some weird reason, it returns -11. I'm pretty sure it shouldn't but I don't know. Thanks
-GEMISIS
Edit: Probably should mention that I am using the newest version of both devkitppc and libogc.
possible net_accept bug
Re: possible net_accept bug
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
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
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest