Winsock packetsize problems
Posted on 2001-06-12
I've stumbled across a HUGE problem with my application.
I'm using winsock to send and recieve (works 100% fine).
When i RECEIVE some XML data, it arrives in 2 packets, becuase the XML DATA is too big for one packet!! I read some previous posts, etc, and found that packet size is around 8192 or something.
How do i make it so that strData == winsock.getdata from BOTH packets?! Also, my data can also get VERY LONG! so i can't hardcode the actual number of packets being received.
the main thing i cannot understand is how it KNOWS when a group of packets are part of a broken up string of data... ?
Private Sub Winsock_DataArrival(ByVal bytesTotal As Long)
Dim strIncomingText As String
' The incoming data is to data from ALL THE PACKETS..
This is so confussing.
Please help :(