lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Sockets - read() - without copying buffers


From: Kieran Mansley
Subject: Re: [lwip-users] Sockets - read() - without copying buffers
Date: Mon, 11 May 2009 10:36:34 +0100

On Mon, 2009-05-11 at 10:32 +0200, ncoage wrote:
> Hi,
> 
> I'm using sockets API to receive some data from remote device. Is it
> possible to read incoming data without using function read(). I want
> to use directly internal buffer of the socket and want to get to know
> how many bytes are in the buffer. If its not possible - is there a
> method to check how many bytes I can read before reading them?

No, the sockets API doesn't work like that.  Are you sure you can safely
use the internal buffer of the socket?  It doesn't sound safe to me.

Kieran





reply via email to

[Prev in Thread] Current Thread [Next in Thread]