1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
5 -- G N A T . S O C K E T S . C O N S T A N T S --
11 -- Copyright (C) 2001 Ada Core Technologies, Inc. --
13 -- GNAT is free software; you can redistribute it and/or modify it under --
14 -- terms of the GNU General Public License as published by the Free Soft- --
15 -- ware Foundation; either version 2, or (at your option) any later ver- --
16 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
19 -- for more details. You should have received a copy of the GNU General --
20 -- Public License distributed with GNAT; see file COPYING. If not, write --
21 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
22 -- MA 02111-1307, USA. --
24 -- As a special exception, if other files instantiate generics from this --
25 -- unit, or you link this unit with other files to produce an executable, --
26 -- this unit does not by itself cause the resulting executable to be --
27 -- covered by the GNU General Public License. This exception does not --
28 -- however invalidate any other reasons why the executable file might be --
29 -- covered by the GNU Public License. --
31 -- GNAT is maintained by Ada Core Technologies Inc (http://www.gnat.com). --
33 ------------------------------------------------------------------------------
35 -- This is the version for UnixWare
37 package GNAT
.Sockets
.Constants
is
41 AF_INET
: constant := 2;
42 AF_INET6
: constant := 27;
46 SOCK_STREAM
: constant := 2;
47 SOCK_DGRAM
: constant := 1;
51 EBADF
: constant := 9;
52 ENOTSOCK
: constant := 95;
53 ENOTCONN
: constant := 134;
54 ENOBUFS
: constant := 132;
55 EOPNOTSUPP
: constant := 122;
56 EFAULT
: constant := 14;
57 EWOULDBLOCK
: constant := 11;
58 EADDRNOTAVAIL
: constant := 126;
59 EMSGSIZE
: constant := 97;
60 EADDRINUSE
: constant := 125;
61 EINVAL
: constant := 22;
62 EACCES
: constant := 13;
63 EAFNOSUPPORT
: constant := 124;
64 EISCONN
: constant := 133;
65 ETIMEDOUT
: constant := 145;
66 ECONNREFUSED
: constant := 146;
67 ENETUNREACH
: constant := 128;
68 EALREADY
: constant := 149;
69 EINPROGRESS
: constant := 150;
70 ENOPROTOOPT
: constant := 99;
71 EPROTONOSUPPORT
: constant := 120;
72 EINTR
: constant := 4;
74 ESOCKTNOSUPPORT
: constant := 121;
78 HOST_NOT_FOUND
: constant := 1;
79 TRY_AGAIN
: constant := 2;
80 NO_ADDRESS
: constant := 4;
81 NO_RECOVERY
: constant := 3;
85 FIONBIO
: constant := -2147195266;
86 FIONREAD
: constant := 1074030207;
90 SHUT_RD
: constant := 0;
91 SHUT_WR
: constant := 1;
92 SHUT_RDWR
: constant := 2;
96 SOL_SOCKET
: constant := 65535;
97 IPPROTO_IP
: constant := 0;
98 IPPROTO_UDP
: constant := 17;
99 IPPROTO_TCP
: constant := 6;
103 TCP_NODELAY
: constant := 1;
104 SO_SNDBUF
: constant := 4097;
105 SO_RCVBUF
: constant := 4098;
106 SO_REUSEADDR
: constant := 4;
107 SO_KEEPALIVE
: constant := 8;
108 SO_LINGER
: constant := 128;
109 SO_ERROR
: constant := 4103;
110 SO_BROADCAST
: constant := 32;
111 IP_ADD_MEMBERSHIP
: constant := 11;
112 IP_DROP_MEMBERSHIP
: constant := 12;
113 IP_MULTICAST_TTL
: constant := 16;
114 IP_MULTICAST_LOOP
: constant := 10;
115 end GNAT
.Sockets
.Constants
;