Hi all,
I got a problem into my code that simply echos any incomming messages.
First have to cast (void *) to &buf because my compiler says its an error if I
don't.
Secundo, the message transmitted by the server seems to be only half the
original message length.
========================================================
struct netbuf *inbuf;
char *buf;
u16_t buflen;
err_t socket_error;
inbuf = netconn_recv(conn);
socket_error = netconn_err(conn);
if (socket_error == ERR_OK)
{
netbuf_data(inbuf, (void*) &buf, &buflen);
netconn_write(conn, (void*)buf, buflen, NETCONN_NOCOPY);
}
==========================================================
See any flaws into the code?
Francois
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users