Home > Software engineering >  VB WinSocket continuous to Java there was a problem sending data
VB WinSocket continuous to Java there was a problem sending data

Time:10-05

VB6 do server-side WinSocket to Java client sends data, send SendData publishes the event for the first time, Java normal receiving,
Then send SendData publishes the event again, Java is not receive data,
Reason, it is found that with http://bbs.csdn.net/topics/120116546 is the same as the problems of the eldest brother,
The eldest brother to come out at the end of the post:

"Is the service side of the VB program are the two bytes 0, so the next package of baotou is wrong,"

But after I know the reason, but can't think of a solution, so in the hope that everyone can help out a good idea to solve the problem, thank you!

CodePudding user response:

That you only go to the data generated by a debug slowly, one step operation, look at this extra 0 is in which step.

CodePudding user response:

Array is the most prone to the problem of application, such as only 9 bytes in dim a definition (9) as byte array
  • Related