java.lang.Object
org.newsclub.net.unix.AFSocketOption<T>
- Type Parameters:
T
- The option's value type.
- All Implemented Interfaces:
SocketOption<T>
A special socket option supported by some junixsocket-based implementation.
- Author:
- Christian Kohlschütter
-
Constructor Summary
ConstructorDescriptionAFSocketOption
(String name, Class<T> type, int level, int optionName) Creates a new socket option. -
Method Summary
-
Constructor Details
-
AFSocketOption
Creates a new socket option. This should only be called byAFSocket
implementations.- Parameters:
name
- The name of the option.type
- The value type.level
- The socket level (as defined in junixsocket-native).optionName
- The option name (as defined in junixsocket-native).
-
-
Method Details
-
name
- Specified by:
name
in interfaceSocketOption<T>
-
type
- Specified by:
type
in interfaceSocketOption<T>
-
toString
-