Search found 5 matches

by chylli
Fri Feb 20, 2009 1:26 pm
Forum: newLISP in the real world
Topic: is net-select support file descriptor like stdin ?
Replies: 3
Views: 1990

thanks for your reply. then the net-select still didn't support file descriptor ?
by chylli
Fri Feb 20, 2009 11:07 am
Forum: newLISP in the real world
Topic: is net-select support file descriptor like stdin ?
Replies: 3
Views: 1990

is net-select support file descriptor like stdin ?

I want to read from stdin and a socket, but it is tedious and urgly to do so like
(while 1 (if (peek 0) ....) (if (net-peek socket) ...) (sleep 10))

I think there is an select function in linux, man 2 select. is there way to do that in newlisp ?
by chylli
Fri Feb 20, 2009 6:18 am
Forum: newLISP newS
Topic: Release: nl-install
Replies: 1
Views: 2501

it will be greate if there is a place like cpan.
by chylli
Fri Feb 20, 2009 3:17 am
Forum: Anything else we might add?
Topic: a question about import. history library
Replies: 2
Views: 3745

my program exit early only when I use add_history function on libhistory. so I think I misused it ?

(while (net-recieve) ... is ok when I don't use add_history. and it is a simplified version. I will change it when I resovled this problem.


thanks!
by chylli
Thu Feb 19, 2009 10:12 am
Forum: Anything else we might add?
Topic: a question about import. history library
Replies: 2
Views: 3745

a question about import. history library

hi, I'm a newbie of newlisp. now I writed one very simple mud client as following. now it has two problem: 1. if I use readline search function, the program will exit silently. I think it is about memory problem. can anyone fix it ??? 2. when the peer of socket close the connection, the program will...