I use the raw api.
tcp_arg(pcb, (void *)mysession);
/* Configure LwIP to use our call back functions. */
tcp_err(pcb, tcpserver_conn_err);
tcp_recv(pcb, tcpserver_recv);
tcp_poll(pcb, tcpserver_poll, 10);
/* Send out the first message */
tcp_write(pcb, "hello", strlen("hello"), 1);
On Sun, May 6, 2012 at 5:51 AM, Kieran Mansley <[email protected]> wrote:
>
> On 6 May 2012, at 00:54, Andrew Xiang wrote:
>
> > Is there any way for me to tell the sending buffer is almost full and I
> should slow down on my data output? Is there a function or variable that I
> can use to delay calling the tcp_write ?
>
> Which lwIP API are you using to send data?
>
> Kieran
> _______________________________________________
> lwip-users mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users