LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp buffers

I am having trouble with the TCP server not getting the 4th tcp message from a client. The magic number that works consistantly is 3. The 4th doesn't. I am attaching a message at the bottom of this email put up on this board in 2000 that was never answered with this same problem. Is this CVI still being supported? Can you guys give me a workaround and tell me what I need to do?

-from this forum in 2000-
>>"I am trying to communicate several PCs whith a >>server throug the functions
>>about TCP/IP LabWindows supports. Each client sends >>4 buffers with information.
>>My problem happens even with only one client and it >>is the following: The
>>server can sometimes receives all the buffers, but >>not always. I would like
>>to know if it is due to the time
the server needs to process all the information.
>>Is there anyway to access to the queue of the >>operative system where the
>>buffers are kept? Am I obligued to send only one >>buffer with all the information?
>>In that case the buffer would become too long. Is >>the solution in using multithreadin
>>even only with one client? I would be very grateful >>if somebody could help
>>me. Thank you in avance."
0 Kudos
Message 1 of 2
(3,134 Views)
I'm sure you are probably getting all the DATA, just not 4 separate message. Remember, TCP is a data stream and has NO notion of message packaging. What is probably happening is that two of your messages are running together, so you get all of the data for the four TCP writes, but only 3 events telling you that there is new info in the buffer.

Set up your event handler to read ALL data from the TCP buffer and you will see that you are getting all of the data, just not 4 separate events since TCP is a byte stream and doesn't work that way.

Also, yes, CVI is of course still being supported. I didn't see any question that you have ever posted that wasn't answered except one general question about port forwarding and TCP with a linksys router that had n
othing to do with CVI. If you have issues that you would like assistance with from National Instruments, call or e-mail us via http://www.ni.com/ask and our support engineers will be happy to help.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(3,134 Views)