25 #include "libComAPI.h"
48 int domain,
int type,
int protocol );
67 int sock,
struct sockaddr * pAddr, osiSocklen_t * addrlen );
91 LIBCOM_API
void epicsStdCall
109 LIBCOM_API
void epicsStdCall
144 #ifdef EPICS_PRIVATE_API
155 LIBCOM_API
int epicsSocketUnsentCount(SOCKET sock);
176 const struct sockaddr * paddr,
char * pBuf,
unsigned bufSize );
192 LIBCOM_API
unsigned epicsStdCall
ipAddrToA (
193 const struct sockaddr_in * pInetAddr,
char * pBuf,
unsigned bufSize );
210 const struct sockaddr * paddr,
char * pBuf,
unsigned bufSize );
226 const struct sockaddr_in * paddr,
char * pBuf,
unsigned bufSize );
241 const struct in_addr * pAddr,
char * pBuf,
unsigned bufSize );
258 (
const char * pAddrString,
unsigned short defaultPort,
struct sockaddr_in * pIP);
270 (
const char *pHostName,
struct in_addr *pIPA);
301 char * pBuf,
unsigned bufSize,
int error );
314 char * pBuf,
unsigned bufSize );
324 struct sockaddr_in ia;
LIBCOM_API void epicsStdCall epicsSocketEnableAddressUseForDatagramFanout(SOCKET s)
Allows multiple sockets to use the same family, local address, and local port.
LIBCOM_API void epicsSocketConvertErrorToString(char *pBuf, unsigned bufSize, int error)
convert socket error numbers to a string
LIBCOM_API unsigned epicsStdCall ipAddrToA(const struct sockaddr_in *pInetAddr, char *pBuf, unsigned bufSize)
Convert IP address to ASCII.
Union to switch between sockaddr_in and sockaddr.
LIBCOM_API int epicsStdCall sockAddrAreIdentical(const osiSockAddr *plhs, const osiSockAddr *prhs)
Compares two osiSockAddrs.
LIBCOM_API unsigned epicsStdCall ipAddrToDottedIP(const struct sockaddr_in *paddr, char *pBuf, unsigned bufSize)
Convert to raw dotted IP address with trailing port.
LIBCOM_API enum epicsSocketSystemCallInterruptMechanismQueryInfo epicsSocketSystemCallInterruptMechanismQuery()
Query what approach to use to interrupt blocking socket calls.
Calling close() required to interrupt.
LIBCOM_API void epicsSocketConvertErrnoToString(char *pBuf, unsigned bufSize)
Convert the currently set errno to a string.
A doubly-linked list library.
calling shutdown() for both read and write required to interrupt
epicsSocketSystemCallInterruptMechanismQueryInfo
Enum specifying how to interrupt a blocking socket system call.
LIBCOM_API void epicsStdCall osiSockRelease(void)
release BSD socket library
LIBCOM_API int epicsStdCall osiSockAttach(void)
attach to BSD socket library
NO LONGER USED/SUPPORTED.
LIBCOM_API void epicsStdCall epicsSocketDestroy(SOCKET)
Close and free resources held by a SOCKET object.
LIBCOM_API void epicsStdCall epicsSocketEnableAddressReuseDuringTimeWaitState(SOCKET s)
Allows a socket to bind ignoring other sockets in TIME_WAIT state.
LIBCOM_API void epicsStdCall osiSockDiscoverBroadcastAddresses(ELLLIST *pList, SOCKET socket, const osiSockAddr *pMatchAddr)
Add available broadcast addresses to a list.
LIBCOM_API osiSockAddr epicsStdCall osiLocalAddr(SOCKET socket)
LIBCOM_API unsigned epicsStdCall sockAddrToDottedIP(const struct sockaddr *paddr, char *pBuf, unsigned bufSize)
Convert to raw dotted IP address with trailing port.
LIBCOM_API unsigned epicsStdCall sockAddrToA(const struct sockaddr *paddr, char *pBuf, unsigned bufSize)
Convert socket address to ASCII.
LIBCOM_API int epicsStdCall epicsSocketAccept(int sock, struct sockaddr *pAddr, osiSocklen_t *addrlen)
Accept a connection on a listening stream socket.
LIBCOM_API int epicsStdCall aToIPAddr(const char *pAddrString, unsigned short defaultPort, struct sockaddr_in *pIP)
Attempt to convert ASCII string to an IP address.
LIBCOM_API int epicsStdCall hostToIPAddr(const char *pHostName, struct in_addr *pIPA)
Attempt to convert ASCII host name string with optional port to an IP address.
LIBCOM_API unsigned epicsStdCall ipAddrToHostName(const struct in_addr *pAddr, char *pBuf, unsigned bufSize)
Convert inet address to a host name string.
LIBCOM_API SOCKET epicsStdCall epicsSocketCreate(int domain, int type, int protocol)
Create a socket object.
Stores a list of socket addresses.