LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I get the size of TCP buffer waiting?

Hi all,
My application reads incomming TCP datagrams, of various sizes.
for reading I'm using ServerTCPRead, with a quite large buffer as a parameter.
My question - How can I tell where the data ends and the padding starts in my buffer? This should be easy to get since the size can be retrieved from the IP packet...
thanks,
Ido


Message Edited by IdoZe on 11-05-2007 11:59 AM
0 Kudos
Message 1 of 2
(3,089 Views)

The return value of ServerTCPRead is either a negative error code or, if positive, the number of bytes read.

Ian.

0 Kudos
Message 2 of 2
(3,086 Views)