Re-assemble packets sent across a TCP connection using a winsock control

Category:
ASP, HTML and XML
Type:
Snippets
Difficulty:
Beginning
Author:
Alan Haigh

Version Compatibility: Visual Basic 6

More information:
a class to handle the data sent and received at both ends of a Winsock control's connection (TCP Mode). because TCP will combine small data streams into one packet or split large streams over several packets for efficient transport across a network it is necessary to re-assemble the data back into its original state on receipt by the client This class will re-assemble the data before passing it onto the client via the DataArrival Events.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download tcpmanagedstream.zip