I already did a bit of research & tried a few things... but still can't find how to programmatic detect if there are any bytes (that maybe already be awaiting inside the outgoing queue) which had not been transmitted to the cable.
Thanks
I already did a bit of research & tried a few things... but still can't find how to programmatic detect if there are any bytes (that maybe already be awaiting inside the outgoing queue) which had not been transmitted to the cable.
Thanks
Looks like Windows does not support it on the socket level. On Linux that would be SO_NWRITE
option to getsockopt()
API. But even if there's similar facility in Windows, since wire writes happen asynchronously to your process, the value you'd receive from the OS might be stale by the time your process gets it. So the usefulness of such information is at least questionable.