Hi, folks!
I'm trying to send/receive data through Winsock in a VB app. Using .Sendata in a loop only seems to trigger a single Data_Arrival event in the receiving app, instead of a series of Data_Arrival events corresponding with the number of times .Sendata appears in the sending loop.
However -- bytes received (as shown in Data_Arrival event) corresponds with the total amount of data sent in the loop.
SendComplete event seems totally useless -- it is not triggered with each send event, so there seems to be no way for the receiving end to distinguish between the end of one .Sendata and the beginning of the next one.
So -- if you have a 426-byte receive buffer full of integers (which I assume is 213 two-byte integer values), how does one use .GetData to parse that receive buffer to recover the individual integer values?
Respectfully,
GWhiz
I'm trying to send/receive data through Winsock in a VB app. Using .Sendata in a loop only seems to trigger a single Data_Arrival event in the receiving app, instead of a series of Data_Arrival events corresponding with the number of times .Sendata appears in the sending loop.
However -- bytes received (as shown in Data_Arrival event) corresponds with the total amount of data sent in the loop.
SendComplete event seems totally useless -- it is not triggered with each send event, so there seems to be no way for the receiving end to distinguish between the end of one .Sendata and the beginning of the next one.
So -- if you have a 426-byte receive buffer full of integers (which I assume is 213 two-byte integer values), how does one use .GetData to parse that receive buffer to recover the individual integer values?
Respectfully,
GWhiz