timeout parameter for net-receive-udp

Started by HPW, June 10, 2004, 01:07:38 AM

Previous topic - Next topic

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/ikonboard/topic.cgi?forum=2&topic=1578">http://www.neosoftware.com/cgi-bin/ikon ... topic=1578">http://www.neosoftware.com/cgi-bin/ikonboard/topic.cgi?forum=2&topic=1578
Hans-Peter

Lutz

#1
I think it can be done, will look into it,



Lutz

HPW

#2
>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.
Hans-Peter

HPW

#3
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.
Hans-Peter

Lutz

#4
development version newLISP 8.0.7 has an optional timeout parameter in net-receive-udp



Lutz

HPW

#5
Thanks Lutz,



I will give it a try!
Hans-Peter

newdep

#6
Great extention, great enhancement.. Thanks...
-- (define? (Cornflakes))