Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: wb17
  • Order by date
  1. wb17

    Buffered Recv Function?

    I would think so too, but I have int sock = socket(AF_INET, SOCK_STREAM, 0); and it still discards anything bigger than the buffer. I've rewritten my code to use a whole bunch of buffers now. But still, I feel like I've missed something that would have made this a whole lot easier. Anyway...
  2. wb17

    Buffered Recv Function?

    Hi, When using recv if the len parameter is shorter than the data in the buffer the remaining data is discarded. This seems strange to me, I thought I was reading from a stream? Is there anyway to read a fixed number of bytes and not loose the rest? I know I can create my own buffer to read...

Part and Inventory Search

Back
Top