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.
yes, I can do that
Lutz
Hehehe..sounds like my manager... A good "Can Do!" spirit ;-)
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