Page 1 of 1

(net-error)

Posted: Fri Oct 15, 2004 8:49 am
by newdep
Hi Lutz,

Is it possible to change the behaviour of (net-error) return messages?

Currently the 'net-error message is a string,
starting with a number ending with a string..

I think that if 'net-error is able to return a List then its more dynamic,
grabbing the problems code using a 'case return the string.. this solves
a lot of extra coding in newlisp to grab the error message and makes
grabbing errors dynamic...

like ->

( 6 "Connection Closed" ) instead of ( "6 Connection closed")


Regards,
Norman.

Posted: Fri Oct 15, 2004 1:37 pm
by Lutz
yes, I can do that

Lutz

Posted: Fri Oct 15, 2004 7:21 pm
by newdep
Hehehe..sounds like my manager... A good "Can Do!" spirit ;-)

Posted: Fri Oct 15, 2004 9:32 pm
by Lutz
Who can resist when Norman speaks (specially when it is about networking stuff) :-)

Code: Select all

newLISP v.8.2.4 Copyright (c) 2004 Lutz Mueller. All rights reserved.

> (net-send 12345 "jkhgjkg")
nil
> (net-error)
(9 "Socket send failed")
>
you see the change is already done.

Lutz