newLISP Fan Club

Forum => newLISP in the real world => Topic started by: HPW on June 10, 2004, 01:07:38 AM

Title: timeout parameter for net-receive-udp
Post by: HPW on June 10, 2004, 01:07:38 AM
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
Title:
Post by: Lutz on June 10, 2004, 04:52:15 AM
I think it can be done, will look into it,



Lutz
Title:
Post by: HPW on June 10, 2004, 06:04:03 AM
>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.
Title:
Post by: HPW on June 10, 2004, 08:08:35 AM
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.
Title:
Post by: Lutz on June 13, 2004, 01:52:26 PM
development version newLISP 8.0.7 has an optional timeout parameter in net-receive-udp



Lutz
Title:
Post by: HPW on June 13, 2004, 10:58:41 PM
Thanks Lutz,



I will give it a try!
Title:
Post by: newdep on June 16, 2004, 01:30:39 AM
Great extention, great enhancement.. Thanks...