Hello,
Im all new to this list so hello every one :-). Im using the release candidate of lwip 1.3, raw api. First just to make sure I haven't misunderstood something; The "void *arg" that you can bind to a pcb via tcp_arg(); is a pointer to whatever instance data that you want back when your callback functions are called e.g the callback function defined by tcp_accept(). If this is correct my problem is that I register a pointer to some instance data after I call tcp_listen and then register a callback function with tcp_accept. When the callback is called the arg pointer is NULL. What I do : Allocate inst pointer and fill ind some values. . newpcb = tcp_listen(oldpcb); tcp_arg(newpcb,inst); tcp_accept(newpcb, acceptConnect); in 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.... Any idea what could be wrong ? Thanks Hans Jacob Møller Software Engineer CSR Denmark Niels Jernes Vej 10 9220 Aalborg O Denmark http://www.csr.com <http://www.csr.com/> Company Telephone Number +45 99 324 100 Direct Dial +45 99 324 139 Company Fax Number +45 99 324 101
_______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
