lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] throttle the output


From: Andrew Xiang
Subject: Re: [lwip-users] throttle the output
Date: Sun, 6 May 2012 12:01:19 -0400

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 <address@hidden> 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
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]