Class SslTcpOutputStream

    • Constructor Summary

      Constructors 
      Constructor Description
      SslTcpOutputStream​(java.net.InetAddress address, int port)
      Creates a SSL TCP output stream.
      SslTcpOutputStream​(java.net.InetAddress address, int port, boolean blockOnReconnect)
      Creates a SSL TCP output stream.
      SslTcpOutputStream​(javax.net.SocketFactory socketFactory, java.net.InetAddress address, int port)
      Creates a SSL TCP output stream.
      SslTcpOutputStream​(javax.net.SocketFactory socketFactory, java.net.InetAddress address, int port, boolean blockOnReconnect)
      Creates a SSL TCP output stream.
    • Constructor Detail

      • SslTcpOutputStream

        public SslTcpOutputStream​(java.net.InetAddress address,
                                  int port)
                           throws java.io.IOException
        Creates a SSL TCP output stream.

        Uses the default socket factory to create the socket.

        Parameters:
        address - the address to connect to
        port - the port to connect to
        Throws:
        java.io.IOException - if an I/O error occurs when creating the socket
      • SslTcpOutputStream

        public SslTcpOutputStream​(javax.net.SocketFactory socketFactory,
                                  java.net.InetAddress address,
                                  int port)
                           throws java.io.IOException
        Creates a SSL TCP output stream.

        Uses the default socket factory to create the socket.

        Parameters:
        socketFactory - the factory used to create the socket
        address - the address to connect to
        port - the port to connect to
        Throws:
        java.io.IOException - if an I/O error occurs when creating the socket
      • SslTcpOutputStream

        public SslTcpOutputStream​(java.net.InetAddress address,
                                  int port,
                                  boolean blockOnReconnect)
                           throws java.io.IOException
        Creates a SSL TCP output stream.

        Uses the default socket factory to create the socket.

        Parameters:
        address - the address to connect to
        port - the port to connect to
        blockOnReconnect - true to block when attempting to reconnect the socket or false to reconnect asynchronously
        Throws:
        java.io.IOException - if an I/O error occurs when creating the socket
      • SslTcpOutputStream

        public SslTcpOutputStream​(javax.net.SocketFactory socketFactory,
                                  java.net.InetAddress address,
                                  int port,
                                  boolean blockOnReconnect)
                           throws java.io.IOException
        Creates a SSL TCP output stream.

        Uses the default socket factory to create the socket.

        Parameters:
        socketFactory - the factory used to create the socket
        address - the address to connect to
        port - the port to connect to
        blockOnReconnect - true to block when attempting to reconnect the socket or false to reconnect asynchronously
        Throws:
        java.io.IOException - if an I/O error occurs when creating the socket