[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] callback function args in lwip 1.3
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] callback function args in lwip 1.3 |
Date: |
Mon, 18 Feb 2008 14:00:52 +0000 |
On Mon, 2008-02-18 at 13:55 +0000, Hans Jacob Moller wrote:
> Allocate inst pointer and fill ind some values.
>
> .
>
> newpcb = tcp_listen(oldpcb);
>
> tcp_arg(newpcb,inst);
>
> tcp_accept(newpcb, acceptConnect);
>
> err_t acceptConnect(void *arg, struct tcp_pcb *newpcb, err_t err)
>
> arg seems to be NULL when it is called from the lwip stackā¦.
Can you check what the values of newpcb are at each stage? e.g. Does
the newpcb argument supplied when acceptConnect() is called match the
newpcb you gave to tcp_arg() and tcp_accept()?
Kieran