Add a tcp_socket_queuelen() function that returns the length of the current TCP output queue

This commit is contained in:
Adam Dunkels 2016-10-31 22:11:34 +01:00
parent 6ab9822fc2
commit f11d344d4d
2 changed files with 18 additions and 0 deletions

View file

@ -399,3 +399,9 @@ tcp_socket_max_sendlen(struct tcp_socket *s)
return s->output_data_maxlen - s->output_data_len;
}
/*---------------------------------------------------------------------------*/
int
tcp_socket_queuelen(struct tcp_socket *s)
{
return s->output_data_len;
}
/*---------------------------------------------------------------------------*/