This is Unofficial EPICS BASE Doxygen Site
osdSock.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 /*
10  * cygwin32 specific include
11  */
12 
13 
14 #ifndef osdSockH
15 #define osdSockH
16 
17 #include <errno.h>
18 
19 #include <sys/types.h>
20 #include <sys/param.h> /* for MAXHOSTNAMELEN */
21 #include <sys/ioctl.h>
22 #include <sys/select.h>
23 #include <sys/time.h>
24 #include <netinet/in.h>
25 #include <arpa/inet.h>
26 #include <net/if.h>
27 #include <netdb.h>
28 #include <unistd.h> /* close() and others */
29 
30 
31 typedef int SOCKET;
32 #define INVALID_SOCKET (-1)
33 #define SOCKERRNO errno
34 #define socket_ioctl(A,B,C) ioctl(A,B,C)
35 typedef int osiSockIoctl_t;
36 typedef int osiSocklen_t;
39 
40 #define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE&&(FD)>=0)
41 #ifndef SHUT_RD
42 #define SHUT_RD 0
43 #endif
44 #ifndef SHUT_WR
45 #define SHUT_WR 1
46 #endif
47 #ifndef SHUT_RDWR
48 # define SHUT_RDWR 2
49 #endif
50 
51 #define SOCK_EWOULDBLOCK EWOULDBLOCK
52 #define SOCK_ENOBUFS ENOBUFS
53 #define SOCK_ECONNRESET ECONNRESET
54 #define SOCK_ETIMEDOUT ETIMEDOUT
55 #define SOCK_EACCES EACCES
56 #define SOCK_EADDRINUSE EADDRINUSE
57 #define SOCK_EADDRNOTAVAIL EADDRNOTAVAIL
58 #define SOCK_ECONNREFUSED ECONNREFUSED
59 #define SOCK_ECONNABORTED ECONNABORTED
60 #define SOCK_EINPROGRESS EINPROGRESS
61 #define SOCK_EISCONN EISCONN
62 #define SOCK_EALREADY EALREADY
63 #define SOCK_EINVAL EINVAL
64 #define SOCK_EINTR EINTR
65 #define SOCK_EPIPE EPIPE
66 #define SOCK_EMFILE EMFILE
67 #define SOCK_SHUTDOWN ESHUTDOWN
68 #define SOCK_ENOTSOCK ENOTSOCK
69 #define SOCK_EBADF EBADF
70 
71 #define ifreq_size(pifreq) (sizeof(pifreq->ifr_name))
72 
73 #endif /*osdSockH*/
int osiSocklen_t
Definition: osdSock.h:36
int osiSockOptMcastLoop_t
Definition: osdSock.h:37
int osiSockIoctl_t
Definition: osdSock.h:35
int SOCKET
Definition: osdSock.h:31
int osiSockOptMcastTTL_t
Definition: osdSock.h:38