(net-error)

Started by newdep, October 15, 2004, 01:49:02 AM

Previous topic - Next topic

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.
-- (define? (Cornflakes))

Lutz

#1
yes, I can do that



Lutz

newdep

#2
Hehehe..sounds like my manager... A good "Can Do!" spirit ;-)
-- (define? (Cornflakes))

Lutz

#3
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