This is Unofficial EPICS BASE Doxygen Site
osdSockUnsentCount.c File Reference
#include "osiSock.h"
#include <mstcpip.h>
+ Include dependency graph for osdSockUnsentCount.c:

Go to the source code of this file.

Macros

#define EPICS_PRIVATE_API
 

Functions

int epicsSocketUnsentCount (SOCKET sock)
 

Macro Definition Documentation

#define EPICS_PRIVATE_API

Definition at line 6 of file osdSockUnsentCount.c.

Function Documentation

int epicsSocketUnsentCount ( SOCKET  sock)

Definition at line 14 of file osdSockUnsentCount.c.

14  {
15 #ifdef SIO_TCP_INFO
16 /* Windows 10 Version 1703 / Server 2016 */
17  DWORD infoVersion = 0, bytesReturned;
18  TCP_INFO_v0 tcpInfo;
19  int status;
20  if ((status = WSAIoctl(sock, SIO_TCP_INFO, &infoVersion, sizeof(infoVersion),
21  &tcpInfo, sizeof(tcpInfo), &bytesReturned, NULL, NULL)) == 0)
22  return tcpInfo.BytesInFlight;
23 #endif
24  return -1;
25 }
pvd::Status status
#define NULL
Definition: catime.c:38