Can a tcp socket's send buffer be cleared/emptied manually?

39 views
Skip to first unread message

weiqi

unread,
Mar 27, 2019, 3:42:23 AM3/27/19
to ns-3-users
I have an application which sends data periodically. I want to clear its send buffer when an epoch ends so that the old data won't block next epoch's transmission.

Is there any method/func I can call? Haven't got any answer after so much google.

Or all I can do is just close the old socket at the epoch's end and open a new one in next epoch's beginning?

Thanks for all advises and help!!
Reply all
Reply to author
Forward
0 new messages