Thanks, I got the code using the Windows client. I have another little
suggestion. I know you shouldn't call this with buf == NULL, but it can
happen:
Api_lib.c
err_t
netbuf_data(struct netbuf *buf, void **dataptr, u16_t *len)
{
if (buf == NULL) {// change
return ERR_BUF;
}
if (buf->ptr == NULL) {
return ERR_BUF;
}
*dataptr = buf->ptr->payload;
*len = buf->ptr->len;
return ERR_OK;
}
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users