java.net.SocketOption<T>
A socket option is associated with a socket.
In the channels package, the java.nio.channels.NetworkChannel interface defines the setOptionand getOption methods to set and query the channel's socket options. Type
Parameters: <T> The type of the socket option value.
Approach
Java
public interface SocketOption<T> {String name();Class<T> type();}
Methods
1. name()
String java.net.SocketOption.name()
Returns the name of the socket option.
Returns: the name of the socket option
2. type()
Class<T> java.net.SocketOption.type()
Returns the type of the socket option value.
Returns: the type of the socket option value
No comments:
Post a Comment