Debian Codegraph @

src/main/java/jnr/constants/platform/freebsd/aarch64/SocketOption.java

raw
1 // WARNING: This file is autogenerated. DO NOT EDIT!
2 // Generated 2021-10-08 17:37:34 +0200
3 package jnr.constants.platform.freebsd.aarch64;
4 public enum SocketOption implements jnr.constants.Constant {
5 SO_DEBUG(0x1L),
6 SO_ACCEPTCONN(0x2L),
7 SO_REUSEADDR(0x4L),
8 SO_KEEPALIVE(0x8L),
9 SO_DONTROUTE(0x10L),
10 SO_BROADCAST(0x20L),
11 SO_USELOOPBACK(0x40L),
12 SO_LINGER(0x80L),
13 SO_OOBINLINE(0x100L),
14 SO_REUSEPORT(0x200L),
15 SO_TIMESTAMP(0x400L),
16 SO_ACCEPTFILTER(0x1000L),
17 // SO_DONTTRUNC not defined
18 // SO_WANTMORE not defined
19 // SO_WANTOOBFLAG not defined
20 SO_SNDBUF(0x1001L),
21 SO_RCVBUF(0x1002L),
22 SO_SNDLOWAT(0x1003L),
23 SO_RCVLOWAT(0x1004L),
24 SO_SNDTIMEO(0x1005L),
25 SO_RCVTIMEO(0x1006L),
26 SO_ERROR(0x1007L),
27 SO_TYPE(0x1008L),
28 // SO_NREAD not defined
29 // SO_NKE not defined
30 SO_NOSIGPIPE(0x800L),
31 // SO_NOADDRERR not defined
32 // SO_NWRITE not defined
33 // SO_REUSESHAREUID not defined
34 SO_LABEL(0x1009L),
35 SO_PEERLABEL(0x1010L);
36 // SO_ATTACH_FILTER not defined
37 // SO_BINDTODEVICE not defined
38 // SO_DETACH_FILTER not defined
39 // SO_NO_CHECK not defined
40 // SO_PASSCRED not defined
41 // SO_PEERCRED not defined
42 // SO_PEERNAME not defined
43 // SO_PRIORITY not defined
44 // SO_SECURITY_AUTHENTICATION not defined
45 // SO_SECURITY_ENCRYPTION_NETWORK not defined
46 // SO_SECURITY_ENCRYPTION_TRANSPORT not defined
47 private final long value;
48 private SocketOption(long value) { this.value = value; }
49 public static final long MIN_VALUE = 0x1L;
50 public static final long MAX_VALUE = 0x1010L;
51
52 static final class StringTable {
53 public static final java.util.Map<SocketOption, String> descriptions = generateTable();
54 public static final java.util.Map<SocketOption, String> generateTable() {
55 java.util.Map<SocketOption, String> map = new java.util.EnumMap<SocketOption, String>(SocketOption.class);
56 map.put(SO_DEBUG, "SO_DEBUG");
57 map.put(SO_ACCEPTCONN, "SO_ACCEPTCONN");
58 map.put(SO_REUSEADDR, "SO_REUSEADDR");
59 map.put(SO_KEEPALIVE, "SO_KEEPALIVE");
60 map.put(SO_DONTROUTE, "SO_DONTROUTE");
61 map.put(SO_BROADCAST, "SO_BROADCAST");
62 map.put(SO_USELOOPBACK, "SO_USELOOPBACK");
63 map.put(SO_LINGER, "SO_LINGER");
64 map.put(SO_OOBINLINE, "SO_OOBINLINE");
65 map.put(SO_REUSEPORT, "SO_REUSEPORT");
66 map.put(SO_TIMESTAMP, "SO_TIMESTAMP");
67 map.put(SO_ACCEPTFILTER, "SO_ACCEPTFILTER");
68 map.put(SO_SNDBUF, "SO_SNDBUF");
69 map.put(SO_RCVBUF, "SO_RCVBUF");
70 map.put(SO_SNDLOWAT, "SO_SNDLOWAT");
71 map.put(SO_RCVLOWAT, "SO_RCVLOWAT");
72 map.put(SO_SNDTIMEO, "SO_SNDTIMEO");
73 map.put(SO_RCVTIMEO, "SO_RCVTIMEO");
74 map.put(SO_ERROR, "SO_ERROR");
75 map.put(SO_TYPE, "SO_TYPE");
76 map.put(SO_NOSIGPIPE, "SO_NOSIGPIPE");
77 map.put(SO_LABEL, "SO_LABEL");
78 map.put(SO_PEERLABEL, "SO_PEERLABEL");
79 return map;
80 }
81 }
82 public final String toString() { return StringTable.descriptions.get(this); }
83 public final int value() { return (int) value; }
84 public final int intValue() { return (int) value; }
85 public final long longValue() { return value; }
86 public final boolean defined() { return true; }
87 }