EUforum Messages
- Powered by Euphoria -
Post Reply Previous Next All Messages
Date: Thu May 8 12:29
From: Jeremy Cowgar <jeremy at ?ow?ar.com>
Subject: Re: eunet mods

Kat wrote:
> 
> What else does it need (keeping in mind it's a web interface, not a webpage
> manager, not an irc bot, and not a firewall)?
> 

Great! One problem I am having with it is eu with the eunet_recv(). If I pass
MSG_DONTWAIT to it, then it returns right away and with no data received, in
Linux, it returns: {11, ""} then when data is received, it returns "Data". So,
in my check on Linux, I have to check result[1] != 11 (we have data).

Now on windows, it returns a different code. I think it was 10025, but I am
not certain. So, on windows I have to perform a different check. It should probably
define it's own error codes and map in the cross-platform functions, to eunet's
errors so programmers can simply: result[1] = NO_DATA and it will work on Windows
or Linux/FreeBSD.

i.e. If it's cross platform, it should work on either platform w/no changes
or special handling on either platform.

--
Jeremy Cowgar
http://jeremy.cowgar.com

 
Post Reply Previous Next All Messages