Thank you,

<< On Receive Winsock read datagram, check checksum. And if all is OK, then
it pass to Synapse 10 bytes of data >>
So it means I do not need to add my own checksum to the 10bytes ?
When data is corrupted during transmission, I simply won't get data from the
receive socket?

Regards

C.Sporer
Grüntenstr.18
80686 München
Tel.:  +(49) 89 54217952
Fax.: +(49) 89 52389119

-----Ursprüngliche Nachricht-----
Von: Lukas Gebauer [mailto:gebyl...@mlp.cz] 
Gesendet: Freitag, 29. Januar 2016 12:00
An: Ararat Synapse
Betreff: Re: [Synalist] UDP checksum



> Good evening,
> 
>  
> 
> I read this very interesting explanation about UDP-server, UDP-client 
> by Lukas Gebauer (see below).
> 
>  
> 
> My additional question is : does Synapse do UDP checksum verification? 
> I read somewhere that this is optional for UDP.
> 
>  
> 
> In other words, when I send data (10 bytes only) in a UDP datagram, 
> shall I provide my own checksum (in the data block itself) or can I 
> rely on UDP checksum mechanism of Synapse?

Synapse does not do checksums. It is job for underlaying Winsock layer.
Synapse working with payload only.

So, you send 10 bytes by Synapse. Synapse pass 10 bytes into winsock (or
other sockat layer interface), and winsock made UDP datagram with all needed
headers and checksums.

On Receive Winsock read datagram, check checksum. And if all is OK, then it
pass to Synapse 10 bytes of data.

Sometimes you can control how Winsock handle checksums by setsockopt call.
But it is depended on platform and operating system version. 

See this:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms738603%28v=
vs.85%29.aspx



--
Lukas Gebauer.

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


----------------------------------------------------------------------------
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance APM +
Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor
end-to-end web transactions and take corrective actions now Troubleshoot
faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to