Add a tcp_socket_queuelen() function that returns the length of the current TCP output queue
This commit is contained in:
parent
6ab9822fc2
commit
f11d344d4d
2 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue