By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,641 Members | 2,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,641 IT Pros & Developers. It's quick & easy.

receive buffer for TCP socket

P: 91

My application is communicate with a network device by transmit and receive string on network. I had a problem, after received 20 or 30 string, it looks like the receive buffer always contains the previous string, new coming string just appended to the receive buffer. is there any way to clear the buffer? I'm using winsock.getdada(String) upon receive data. Thanks
Jun 21 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 7,872
I am going to start moving your posts to VB6, since you always ask about VB objects and not .NET objects.


Although I would think there is a flag that removes the data as it reads it, instead of performing a PEEK.
Jun 23 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.