Class ServerSocketCommProps

    • Constructor Detail

      • ServerSocketCommProps

        protected ServerSocketCommProps()
        Creates the server socket property container without a name. The name must be set in all cases using the setPropertyAtom call.
      • ServerSocketCommProps

        public ServerSocketCommProps​(Atom propertyAtom)
        Creates the server socket property container with the specified name. All system-reserved names for components begins with "$".
        Parameters:
        propertyAtom - the name of the component, unique within it's parent.
    • Method Detail

      • setVerbose

        public void setVerbose​(boolean on)
        Sets verbose mode.
        Parameters:
        on - true for verbose mode, false for silent.
      • isVerbose

        public boolean isVerbose()
        Checks for verbose output.
        Returns:
        true for verbose output, false for silent.
      • getPort

        public int getPort()
        Gets the host port for the socket.
        Returns:
        0 if none if set.
      • getBindAddress

        public java.lang.String getBindAddress()
        Gets the bind address for the port, i.e. the local host name or IP address.
        Returns:
        null if none is set or not required.
      • setPort

        public void setPort​(int port)
        Gets the host port for the socket.
        Parameters:
        port - the port number 1-65535.
        Throws:
        java.lang.IllegalArgumentException - if the port is not 1-65535.
      • setBindAddress

        public void setBindAddress​(java.lang.String bindAddress)
        Sets the bind address for the socket, i.e. the local host name or IP address.
        Parameters:
        bindAddress - The bind address as host name or IP address (IPv4 or IPv6).
      • setResolveHostNames

        public void setResolveHostNames​(boolean doResolveHostNames)
        Sets if host name resolve is enabled or if the host address should be returned (for performance reasons) for a call to e.g. getRemoteHost().
        Parameters:
        doResolveHostNames - true if host names should be resolved, default is false.
      • doResolveHostNames

        public boolean doResolveHostNames()
        Checks if host name resolve is enabled or if the host address should be returned (for performance reasons) for a call to e.g. getRemoteHost().
        Returns:
        true if host names should be resolved, default is false.