到目前为止,我的谷歌搜索和msdncheckout表明MicrosoftWindows不提供任何等效的TIOCOUTQ/SIOCOUTQ来查找套接字发送缓冲区中未发送的数据量。如果一些优秀的hack发现了一些其他的东西,并且可以在这里发布,那将非常有用。它将使我的以下代码成为跨平台的intnet_get_unsent(constintsockfd,unsignedlong&sock_bytes_unsent){/*Querieshowmuchdatasentonsockfd,*maynothaveyetbeenrecievedbythereciever**returnsmorethan