Page 1 of 1

timeout parameter for net-receive-udp

Posted: Thu Jun 10, 2004 8:07 am
by HPW
Can net-receive-udp get a additional parameter 'timeout' ?

Then it wood listen to incomming UDP, but when timeout is reached it wood come back from the call with some return-message.

Problem: When I call the function from the DLL the app becomes busy and blocked. It wood be nice to get the control back in a time-interval and restart it when needed.

Discussion here:
http://www.neosoftware.com/cgi-bin/ikon ... topic=1578

Posted: Thu Jun 10, 2004 11:52 am
by Lutz
I think it can be done, will look into it,

Lutz

Posted: Thu Jun 10, 2004 1:04 pm
by HPW
>I think it can be done, will look into it,

Thanks for that, another idea would be to use newLISP.EXE as a seperate process to get a always active message-receiver which runs independent of the main-process. The message-receiver buffers the incoming messages in files and the mainprocess can read them when it has time for this action.

I will that give a try too.

Posted: Thu Jun 10, 2004 3:08 pm
by HPW
I have made a new EXE with (link ) with a UdpListener.
This I can start hidden from neobook and it logs all incoming messages inside a choosable Directory.

I think this is more elegant, since the risk of loosing incoming messages is smaller.

Posted: Sun Jun 13, 2004 8:52 pm
by Lutz
development version newLISP 8.0.7 has an optional timeout parameter in net-receive-udp

Lutz

Posted: Mon Jun 14, 2004 5:58 am
by HPW
Thanks Lutz,

I will give it a try!

Posted: Wed Jun 16, 2004 8:30 am
by newdep
Great extention, great enhancement.. Thanks...