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 #include <linux/sockios.h>
7 #define EPICS_PRIVATE_API
8 #include "osiSock.h"
9 
10 /*
11  * epicsSocketUnsentCount ()
12  * See https://linux.die.net/man/7/tcp
13  */
15  int unsent;
16  if (ioctl(sock, SIOCOUTQ, &unsent) == 0)
17  return unsent;
18  return -1;
19 }
int epicsSocketUnsentCount(SOCKET sock)
int SOCKET
Definition: osdSock.h:31