This is Unofficial EPICS BASE Doxygen Site
osdSockUnsentCount.c File Reference
#include "osiSock.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 13 of file osdSockUnsentCount.c.

13  {
14  int unsent;
15  socklen_t len = sizeof(unsent);
16  if (getsockopt(sock, SOL_SOCKET, SO_NWRITE, &unsent, &len) == 0)
17  return unsent;
18  return -1;
19 }