[ENet-discuss] [Fwd: Error codes]

Bruce Mitchener enet-discuss@cubik.org
Sat, 08 Mar 2003 16:04:39 -0700


This is a multi-part message in MIME format.
--------------030807010809060104000409
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


--------------030807010809060104000409
Content-Type: message/rfc822;
 name="Error codes"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Error codes"

Return-Path: <hook_l@pyrogon.com>
Received: from smtp805.mail.sc5.yahoo.com (smtp805.mail.sc5.yahoo.com [66.163.168.184])
	by bellevue.puremagic.com (8.12.8/8.12.8/Debian-1) with SMTP id h28LoZZn017594
	for <enet-discuss@cubik.org>; Sat, 8 Mar 2003 13:50:35 -0800
Message-Id: <200303082150.h28LoZZn017594@bellevue.puremagic.com>
Received: from adsl-66-123-232-62.dsl.sndg02.pacbell.net (HELO HOOKDELL220) (pyrogon@sbcglobal.net@66.123.232.62 with login)
  by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP; 8 Mar 2003 21:50:31 -0000
From: Brian Hook <hook_l@pyrogon.com>
To: <enet-discuss@cubik.org>
X-Mailer: PocoMail 2.63 (1077) - Licensed Version
Date: Sat, 8 Mar 2003 13:51:05 -0800
In-Reply-To: <200303081919.h28JJJZn012091@bellevue.puremagic.com>
Subject: Error codes
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Virus-Scanned: by AMaViS-ng (Milter interface)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by bellevue.puremagic.com id h28LoZZn017594

Right now most of the API returns 0 on success and -1 on error.  To 
support future expansion with specific error codes, maybe the spec 
should be "0 on success, non-0 on failure", then for now we can 
define:

#define ENET_OK     0
#define ENET_ERROR -1

And later expand the error tables as required/necessary/desired.

Brian



--------------030807010809060104000409--