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