Interface Inet.SocketOption

All Known Subinterfaces:
Inet.SocketOptionV2
All Known Implementing Classes:
Inet.AbstractSocketOption, Inet.AbstractSocketOptionV2, Inet.DatagramChannelCreator, Inet.SO$.ReceiveBufferSize, Inet.SO$.ReuseAddress, Inet.SO$.SendBufferSize, Inet.SO$.TrafficClass, Tcp.SO$.KeepAlive, Tcp.SO$.OOBInline, Tcp.SO$.TcpNoDelay, Udp.SO$.Broadcast
Enclosing class:
Inet

public static interface Inet.SocketOption
SocketOption is a package of data (from the user) and associated behavior (how to apply that to a channel).
  • Method Details

    • afterConnect

      void afterConnect(Socket s)
      Action to be taken for this option after connect returned.
    • beforeConnect

      void beforeConnect(Socket s)
      Action to be taken for this option before calling connect()
    • beforeDatagramBind

      void beforeDatagramBind(DatagramSocket ds)
      Action to be taken for this option before bind() is called
    • beforeServerSocketBind

      void beforeServerSocketBind(ServerSocket ss)
      Action to be taken for this option before bind() is called