Hello zhgwyh,
As mentioned in the function documentation for ClientTCPWrite, "it is possible that TCP is not able to transfer all the data in one call. So, if necessary, you can check the number of bytes transferred and call this function repeatedly to transfer the rest of the data".
So you should monitor the return status of the TCPWrite function to see how many bytes were transferred. If this does not equal the data size of the message you are sending, you will have to call the TCPWrite function repeatedly.
Thanks.
Wendy L
LabWindows/CVI Developer Newsletter