IT. Expert System.

Android Reference

ServerSocketFactory


javax.net

Class ServerSocketFactory

  • Direct Known Subclasses:
    SSLServerSocketFactory


    public abstract class ServerSocketFactory
    extends Object
    This abstract class defines methods to create server sockets. It can be subclassed to create specific server socket types.
    • Constructor Detail

      • ServerSocketFactory

        protected ServerSocketFactory()
        Creates a new ServerSocketFactory instance.
    • Method Detail

      • getDefault

        public static ServerSocketFactory getDefault()
        Gets the default server socket factory of the system which can be used to create new server sockets without creating a subclass of this factory.
        Returns:
        the system default server socket factory.
      • createServerSocket

        public ServerSocket createServerSocket()
                                        throws IOException
        Creates a new server socket which is not bound to any local address. This method has to be overridden by a subclass otherwise a SocketException is thrown.
        Returns:
        the created unbound server socket.
        Throws:
        IOException - if an error occurs while creating a new server socket.
      • createServerSocket

        public abstract ServerSocket createServerSocket(int port)
                                                 throws IOException
        Creates a new server socket which is bound to the given port with a maximum backlog of 50 unaccepted connections.
        Parameters:
        port - the port on which the created socket has to listen.
        Returns:
        the created bound server socket.
        Throws:
        IOException - if an error occurs while creating a new server socket.
      • createServerSocket

        public abstract ServerSocket createServerSocket(int port,
                                      int backlog)
                                                 throws IOException
        Creates a new server socket which is bound to the given port and configures its maximum of queued connections.
        Parameters:
        port - the port on which the created socket has to listen.
        backlog - the maximum number of unaccepted connections. Passing 0 or a negative value yields the default backlog of 50.
        Returns:
        the created bound server socket.
        Throws:
        IOException - if an error occurs while creating a new server socket.
      • createServerSocket

        public abstract ServerSocket createServerSocket(int port,
                                      int backlog,
                                      InetAddress iAddress)
                                                 throws IOException
        Creates a new server socket which is bound to the given address on the specified port and configures its maximum of queued connections.
        Parameters:
        port - the port on which the created socket has to listen.
        backlog - the maximum number of unaccepted connections. Passing 0 or a negative value yields the default backlog of 50.
        iAddress - the address of the network interface which is used by the created socket.
        Returns:
        the created bound server socket.
        Throws:
        IOException - if an error occurs while creating a new server socket.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1964 / 159532614. Delta: 0.02988 с