realbasic-nug
[Top] [All Lists]

Re: TCP packet - are separate packets collected into one?

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: TCP packet - are separate packets collected into one?
From: James Sentman <james@sentman.com>
Date: Thu, 26 Feb 2009 17:43:19 -0500
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <BC0B2664-C4C7-4E16-BB1B-CA32C714E503@edlr.fr>
References: <89fe53800902261201u4d7703d7s5a7f9edeab9bad45@mail.gmail.com> <49A70E35.1090504@bellsouth.net> <49A71007.4030406@bellsouth.net> <BC0B2664-C4C7-4E16-BB1B-CA32C714E503@edlr.fr>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On Feb 26, 2009, at 5:20 PM, Eric dLR wrote:

You need to account for all eventualities.

Don't forget the case where data are dropped or altered. I always include a checksum mechanism... just in case.


Isn't one of the points of TCP that it will return your data, properly and in the right order or it will return an error? All the checksumming should be built into the underlying TCP protocol and that part you shouldn't have to worry about. But it may come to your events in little bits or big bits that bear no resemblance to the blocks that it was written in.

Course, if you're using UDP or serial ports or wireless protocols then all that is up to you. But TCP will either return your data, or it will return an error if it cannot re-assemble the packets.


Thanks,
 James


James Sentman                       http://sentman.com          
http://MacHomeAutomation.com




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>