ok, thank you.

But does it really make sense in my case, as I know that I have to expect
one byte of payload every 100ms?
And moreover I am testing IP connectivity with this loop, that is, a timer
is reset at any time the datagram is received and whenever the actual
timespan between last receive and actual time is >100ms the SW detects that
IP connectivity to the remote host is down. 

BTW: what is the difference between waitingData and waitingDataEx? If I
understand it right, Ex means the sum of all received payload bytes in the
line buffer of the OS plus the number of bytes that are still in any
internal HW buffer of the NIC hardware?
And without Ex it means only the number of bytes in the OS buffer?

Kind regards
CS

-----Ursprüngliche Nachricht-----
Von: Lukas Gebauer [mailto:gebyl...@mlp.cz] 
Gesendet: Montag, 19. Dezember 2016 14:40
An: Ararat Synapse
Betreff: Re: [Synalist] filtering of UDP port numbers

>       rx:=udprx.RecvByte(1);

BTW: most effective way for reading UDP data is by RecvPacket, because UDP
data are transmitted by a datagrams. And RecvPacket can wait for next
datagram (no need to call WaitingData before) and is capable to read whole
datagram by one call.



--
Lukas Gebauer.

http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
http://geoget.ararat.cz/ - Geocaching solution


----------------------------------------------------------------------------
--
Check out the vibrant tech community on one of the world's most engaging
tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to