Uses of Interface
java.net.SocketOption
-
Packages that use SocketOption Package Description com.sun.nio.sctp A Java API for Stream Control Transport Protocol.java.net Provides the classes for implementing networking applications.java.nio.channels Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.jdk.net Platform specific socket options for thejava.netandjava.nio.channelssocket classes. -
-
Uses of SocketOption in com.sun.nio.sctp
Subinterfaces of SocketOption in com.sun.nio.sctp Modifier and Type Interface Description interfaceSctpSocketOption<T>A socket option associated with an SCTP channel. -
Uses of SocketOption in java.net
Fields in java.net declared as SocketOption Modifier and Type Field Description static SocketOption<NetworkInterface>StandardSocketOptions. IP_MULTICAST_IFThe network interface for Internet Protocol (IP) multicast datagrams.static SocketOption<Boolean>StandardSocketOptions. IP_MULTICAST_LOOPLoopback for Internet Protocol (IP) multicast datagrams.static SocketOption<Integer>StandardSocketOptions. IP_MULTICAST_TTLThe time-to-live for Internet Protocol (IP) multicast datagrams.static SocketOption<Integer>StandardSocketOptions. IP_TOSThe Type of Service (ToS) octet in the Internet Protocol (IP) header.static SocketOption<Boolean>StandardSocketOptions. SO_BROADCASTAllow transmission of broadcast datagrams.static SocketOption<Boolean>StandardSocketOptions. SO_KEEPALIVEKeep connection alive.static SocketOption<Integer>StandardSocketOptions. SO_LINGERLinger on close if data is present.static SocketOption<Integer>StandardSocketOptions. SO_RCVBUFThe size of the socket receive buffer.static SocketOption<Boolean>StandardSocketOptions. SO_REUSEADDRRe-use address.static SocketOption<Boolean>StandardSocketOptions. SO_REUSEPORTRe-use port.static SocketOption<Integer>StandardSocketOptions. SO_SNDBUFThe size of the socket send buffer.static SocketOption<Boolean>StandardSocketOptions. TCP_NODELAYDisable the Nagle algorithm.Methods in java.net that return types with arguments of type SocketOption Modifier and Type Method Description Set<SocketOption<?>>DatagramSocket. supportedOptions()Returns a set of the socket options supported by this socket.protected Set<SocketOption<?>>DatagramSocketImpl. supportedOptions()Returns a set of SocketOptions supported by this impl and by this impl's socket (DatagramSocket or MulticastSocket)Set<SocketOption<?>>ServerSocket. supportedOptions()Returns a set of the socket options supported by this server socket.Set<SocketOption<?>>Socket. supportedOptions()Returns a set of the socket options supported by this socket.protected Set<SocketOption<?>>SocketImpl. supportedOptions()Returns a set of SocketOptions supported by this impl and by this impl's socket (Socket or ServerSocket)Methods in java.net with parameters of type SocketOption Modifier and Type Method Description <T> TDatagramSocket. getOption(SocketOption<T> name)Returns the value of a socket option.protected <T> TDatagramSocketImpl. getOption(SocketOption<T> name)Called to get a socket option.<T> TServerSocket. getOption(SocketOption<T> name)Returns the value of a socket option.<T> TSocket. getOption(SocketOption<T> name)Returns the value of a socket option.protected <T> TSocketImpl. getOption(SocketOption<T> name)Called to get a socket option.<T> DatagramSocketDatagramSocket. setOption(SocketOption<T> name, T value)Sets the value of a socket option.protected <T> voidDatagramSocketImpl. setOption(SocketOption<T> name, T value)Called to set a socket option.<T> ServerSocketServerSocket. setOption(SocketOption<T> name, T value)Sets the value of a socket option.<T> SocketSocket. setOption(SocketOption<T> name, T value)Sets the value of a socket option.protected <T> voidSocketImpl. setOption(SocketOption<T> name, T value)Called to set a socket option. -
Uses of SocketOption in java.nio.channels
Methods in java.nio.channels that return types with arguments of type SocketOption Modifier and Type Method Description Set<SocketOption<?>>NetworkChannel. supportedOptions()Returns a set of the socket options supported by this channel.Methods in java.nio.channels with parameters of type SocketOption Modifier and Type Method Description <T> TNetworkChannel. getOption(SocketOption<T> name)Returns the value of a socket option.abstract <T> AsynchronousServerSocketChannelAsynchronousServerSocketChannel. setOption(SocketOption<T> name, T value)abstract <T> AsynchronousSocketChannelAsynchronousSocketChannel. setOption(SocketOption<T> name, T value)abstract <T> DatagramChannelDatagramChannel. setOption(SocketOption<T> name, T value)<T> NetworkChannelNetworkChannel. setOption(SocketOption<T> name, T value)Sets the value of a socket option.abstract <T> ServerSocketChannelServerSocketChannel. setOption(SocketOption<T> name, T value)abstract <T> SocketChannelSocketChannel. setOption(SocketOption<T> name, T value) -
Uses of SocketOption in jdk.net
Fields in jdk.net declared as SocketOption Modifier and Type Field Description static SocketOption<SocketFlow>ExtendedSocketOptions. SO_FLOW_SLAService level properties.static SocketOption<Integer>ExtendedSocketOptions. TCP_KEEPCOUNTKeep-Alive retransmission maximum limit.static SocketOption<Integer>ExtendedSocketOptions. TCP_KEEPIDLEKeep-Alive idle time.static SocketOption<Integer>ExtendedSocketOptions. TCP_KEEPINTERVALKeep-Alive retransmission interval time.static SocketOption<Boolean>ExtendedSocketOptions. TCP_QUICKACKDisable Delayed Acknowledgements.Methods in jdk.net that return types with arguments of type SocketOption Modifier and Type Method Description static Set<SocketOption<?>>Sockets. supportedOptions(Class<?> socketType)Returns a set ofSocketOptions supported by the given socket type.Methods in jdk.net with parameters of type SocketOption Modifier and Type Method Description static <T> TSockets. getOption(DatagramSocket s, SocketOption<T> name)Returns the value of a socket option from aDatagramSocketorMulticastSocketstatic <T> TSockets. getOption(ServerSocket s, SocketOption<T> name)Returns the value of a socket option from aServerSocketstatic <T> TSockets. getOption(Socket s, SocketOption<T> name)Returns the value of a socket option from aSocketstatic <T> voidSockets. setOption(DatagramSocket s, SocketOption<T> name, T value)Sets the value of a socket option on aDatagramSocketorMulticastSocketstatic <T> voidSockets. setOption(ServerSocket s, SocketOption<T> name, T value)Sets the value of a socket option on aServerSocketstatic <T> voidSockets. setOption(Socket s, SocketOption<T> name, T value)Sets the value of a socket option on aSocket
-