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 _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
