possible net_accept bug

Post Reply
GEMISIS
Posts: 5
Joined: Sat Mar 14, 2009 6:54 pm

possible net_accept bug

Post by GEMISIS » Sat Mar 14, 2009 6:58 pm

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 :P

-GEMISIS

Edit: Probably should mention that I am using the newest version of both devkitppc and libogc.

User avatar
Izhido
Posts: 107
Joined: Fri Oct 19, 2007 10:57 pm
Location: Costa Rica
Contact:

Re: possible net_accept bug

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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest