This is Unofficial EPICS BASE Doxygen Site
osdSockUnsentCount.c
Go to the documentation of this file.
1 /*************************************************************************\
2 * EPICS BASE is distributed subject to a Software License Agreement found
3 * in file LICENSE that is included with this distribution.
4 \*************************************************************************/
5 
6 #define EPICS_PRIVATE_API
7 #include "osiSock.h"
8 
9 /*
10  * epicsSocketUnsentCount ()
11  * See https://www.unix.com/man-page/osx/2/setsockopt
12  */
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 }
int epicsSocketUnsentCount(SOCKET sock)
int SOCKET
Definition: osdSock.h:31