lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: [lwip] pre-0.5 equivalent of tcp_sndbuf() ?


From: Adam Dunkels
Subject: [lwip-users] Re: [lwip] pre-0.5 equivalent of tcp_sndbuf() ?
Date: Wed, 08 Jan 2003 22:29:13 -0000

Hi Leon!

Perhaps you have moved from 0.4.2 to 0.5.0 by now, but I'll still try to 
answer your questions...

On Wednesday 12 December 2001 10.12, you wrote:
> Q1) tcp_arg does not exist in 0.4.2
>
> Is it correct that the "arg"  of tcp_arg(pcb, arg) must be passed to
> tcp_recv() instead?

Yes, and to all other functions that set a callback. Since the natural thing 
is to use the same argument to all callbacks, this change was made.

> Q2) tcp_sndbuf() does not exist in 0.4.2
>
> How can I emulate this?

It is hard due to bad control of the output buffer. It would have to be done 
by calling tcp_enqueue() with the data. If the call fails with ERR_MEM, it 
would have to be called again later. In 0.4.2, there are no really clean ways 
of doing this.

/adam
-- 
Adam Dunkels <address@hidden>
http://www.sics.se/~adam
[This message was sent through the lwip discussion list.]




reply via email to

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