newLISP Fan Club

Forum => newLISP in the real world => Topic started by: newdep on October 15, 2004, 01:49:02 AM

Title: (net-error)
Post by: newdep on October 15, 2004, 01:49:02 AM
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.
Title:
Post by: Lutz on October 15, 2004, 06:37:41 AM
yes, I can do that



Lutz
Title:
Post by: newdep on October 15, 2004, 12:21:33 PM
Hehehe..sounds like my manager... A good "Can Do!" spirit ;-)
Title:
Post by: Lutz on October 15, 2004, 02:32:18 PM
Who can resist when Norman speaks (specially when it is about networking stuff) :-)



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