Uses of Class
java.net.ServerSocket
Packages that useServerSocket
Package
Description
Provides the classes for implementing networking applications.
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.
Provides classes and interfaces for supporting the server side of RMI.
Provides classes for networking applications.
Provides classes for the secure socket package.
Provides implementations of
RMIClientSocketFactory andRMIServerSocketFactory over the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols.Platform specific socket options for the
java.net andjava.nio.channels socket classes.Uses ofServerSocket injava.net
Methods injava.net that returnServerSocketModifier and TypeMethodDescription<T> ServerSocketServerSocket.setOption(SocketOption<T> name, T value) Sets the value of a socket option.Uses ofServerSocket injava.nio.channels
Methods injava.nio.channels that returnServerSocketModifier and TypeMethodDescriptionabstractServerSocketServerSocketChannel.socket()Retrieves a server socket associated with this channel.Uses ofServerSocket injava.rmi.server
Methods injava.rmi.server that returnServerSocketModifier and TypeMethodDescriptionRMIServerSocketFactory.createServerSocket(int port) Create a server socket on the specified port (port 0 indicates an anonymous port).abstractServerSocketRMISocketFactory.createServerSocket(int port) Create a server socket on the specified port (port 0 indicates an anonymous port).Uses ofServerSocket injavax.net
Methods injavax.net that returnServerSocketModifier and TypeMethodDescriptionServerSocketFactory.createServerSocket()Returns an unbound server socket.abstractServerSocketServerSocketFactory.createServerSocket(int port) Returns a server socket bound to the specified port.abstractServerSocketServerSocketFactory.createServerSocket(int port, int backlog) Returns a server socket bound to the specified port, and uses the specified connection backlog.abstractServerSocketServerSocketFactory.createServerSocket(int port, int backlog,InetAddress ifAddress) Returns a server socket bound to the specified port, with a specified listen backlog and local IP.Uses ofServerSocket injavax.net.ssl
Subclasses ofServerSocket injavax.net.sslModifier and TypeClassDescriptionclassThis class extendsServerSocketand provides secure server sockets using protocols such as the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols.Uses ofServerSocket injavax.rmi.ssl
Methods injavax.rmi.ssl that returnServerSocketModifier and TypeMethodDescriptionSslRMIServerSocketFactory.createServerSocket(int port) Creates a server socket that accepts SSL connections configured according to this factory's SSL socket configuration parameters.Uses ofServerSocket injdk.net
Methods injdk.net with parameters of typeServerSocketModifier and TypeMethodDescriptionstatic <T> TSockets.getOption(ServerSocket s,SocketOption<T> name) Deprecated.usegetOption(SocketOption)instead.static <T> voidSockets.setOption(ServerSocket s,SocketOption<T> name, T value) Deprecated.usesetOption(SocketOption, Object)instead.