Class AFSocketOption<T>

java.lang.Object
org.newsclub.net.unix.AFSocketOption<T>
Type Parameters:
T - The option's value type.
All Implemented Interfaces:
SocketOption<T>

public final class AFSocketOption<T> extends Object implements SocketOption<T>
A special socket option supported by some junixsocket-based implementation.
Author:
Christian Kohlschütter
  • Constructor Details

    • AFSocketOption

      public AFSocketOption(String name, Class<T> type, int level, int optionName)
      Creates a new socket option. This should only be called by AFSocket 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