(net-error)

Q&A's, tips, howto's
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

(net-error)

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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

yes, I can do that

Lutz

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Locked