Re: recv not completely overwriting last string

From: Erik Max Francis (max_at_alcyone.com)
Date: 10/27/03


Date: Mon, 27 Oct 2003 12:48:19 -0800

Robert wrote:

> Is it me or is the recv() function not erasing but only overwriting
> the last
> data it supplied?

recv does not NUL-terminate strings, it just deals with char buffers.
Use the return value to determine how many characters got sent, and then
decide what you want to do with that result.

-- 
   Erik Max Francis && max@alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ I do this for the love of music / Not for the glitter and gold
\__/  India Arie


Relevant Pages