Re: [twsocket] MD5 check needed ?
Hello Arno, AFAIK TCP already does CRC per packet so MD5 may be a bit expensive (doing additionally). Regards, SZ On 10/5/06, Arno Garrels [EMAIL PROTECTED] wrote: Hello, I'm writting a small C/S protocol. It includes sending/receiving database records. Would you suggest to send and check a MD5 checksum? May be it is OK to live with this overhead only upon database write requests? Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- Fastream Technologies Software IQ: Innovation Quality www.fastream.com | Email: [EMAIL PROTECTED] | Tel: +90-312-223-2830 -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] MD5 check needed ?
Fastream Technologies wrote: Hello Arno, AFAIK TCP already does CRC per packet so MD5 may be a bit expensive (doing additionally). What happens in ICS when a corrupted packet has been received? Is DataAvailable being triggered with an error 0 ? Regards, SZ On 10/5/06, Arno Garrels [EMAIL PROTECTED] wrote: Hello, I'm writting a small C/S protocol. It includes sending/receiving database records. Would you suggest to send and check a MD5 checksum? May be it is OK to live with this overhead only upon database write requests? Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- Fastream Technologies Software IQ: Innovation Quality www.fastream.com | Email: [EMAIL PROTECTED] | Tel: +90-312-223-2830 -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] MD5 check needed ?
Hello Arno, What happens in ICS when a corrupted packet has been received? Is DataAvailable being triggered with an error 0 ? I assume you use TCP. No need for additional check. I never have seen a corrupt packet in TCP. Even not on radio networks where there is planty of noise. If I recall whell I even never have seen a Winsock error in OnDataAvaliable. Only received count = 0 if there is close or an error. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] MD5 check needed ?
Wilfried Mestdagh wrote: Hello Arno, What happens in ICS when a corrupted packet has been received? Is DataAvailable being triggered with an error 0 ? I assume you use TCP. Yes I do. No need for additional check. I never have seen a corrupt packet in TCP. Even not on radio networks where there is planty of noise. If I recall whell I even never have seen a Winsock error in OnDataAvaliable. Only received count = 0 if there is close or an error. So I will forget that and sleep well in the future, anyway it's much faster w/o a check, and I like it fast ;-) --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] MD5 check needed ?
Francois PIETTE wrote: I'm writting a small C/S protocol. It includes sending/receiving database records. = No need: TCP stream already has error detection and correction I wasn't sure about how Winsock/ICS handles simple data corruption. What would happen if it happens? To detect man in the middle data alteration ? No, the man in the middle could easily adjust the MD5-sum. = Well why not if you need this kind of security and doesn't want to use SSL Sure, SSL is a user-option. Usually there's no need to use SSL inside the LAN, but who knows? -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] MD5 check needed ?
Hello Arno, I wasn't sure about how Winsock/ICS handles simple data corruption. What would happen if it happens? Packets are resent. The amount of packets is depending the size of the receive window. If memory serve the receive window (where TCP send ACK) can be till 8 kb. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] MD5 check needed ?
Hello Arno, So I will forget that and sleep well in the future, anyway it's much faster w/o a check, and I like it fast ;-) Yes you can sleep on both of your ears (Flemish proverb); --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be