public interface ServerSocketFactory
setFactory() method.| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
createSocket(int port)
Returns a server socket which uses all network interfaces on
the host, and is bound to a the specified port.
|
ServerSocket |
createSocket(int port,
int backlog)
Returns a server socket which uses all network interfaces on
the host, is bound to a the specified port, and uses the
specified connection backlog.
|
ServerSocket |
createSocket(int port,
int backlog,
InetAddress ifAddress)
Returns a server socket which uses only the specified network
interface on the local host, is bound to a the specified port,
and uses the specified connection backlog.
|
ServerSocket createSocket(int port) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
port - the port to listen toIOException - input/output or network errorKeyStoreException - error instantiating the
KeyStore from file (SSL only)NoSuchAlgorithmException - KeyStore algorithm unsupported
by current provider (SSL only)CertificateException - general certificate error (SSL only)UnrecoverableKeyException - internal KeyStore problem with
the certificate (SSL only)KeyManagementException - problem in the key management
layer (SSL only)ServerSocket createSocket(int port, int backlog) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
port - the port to listen tobacklog - how many connections are queuedIOException - input/output or network errorKeyStoreException - error instantiating the
KeyStore from file (SSL only)NoSuchAlgorithmException - KeyStore algorithm unsupported
by current provider (SSL only)CertificateException - general certificate error (SSL only)UnrecoverableKeyException - internal KeyStore problem with
the certificate (SSL only)KeyManagementException - problem in the key management
layer (SSL only)ServerSocket createSocket(int port, int backlog, InetAddress ifAddress) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
port - the port to listen tobacklog - how many connections are queuedifAddress - the network interface address to useIOException - input/output or network errorKeyStoreException - error instantiating the
KeyStore from file (SSL only)NoSuchAlgorithmException - KeyStore algorithm unsupported
by current provider (SSL only)CertificateException - general certificate error (SSL only)UnrecoverableKeyException - internal KeyStore problem with
the certificate (SSL only)KeyManagementException - problem in the key management
layer (SSL only)Copyright © 2019. All rights reserved.