receive buffer for TCP socket

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qfchen
    New Member
    • Oct 2006
    • 91

    receive buffer for TCP socket

    Hi,

    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
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I am going to start moving your posts to VB6, since you always ask about VB objects and not .NET objects.

    MODERATOR

    Although I would think there is a flag that removes the data as it reads it, instead of performing a PEEK.

    Comment

    Working...