Class BASE24Channel

    • Constructor Detail

      • BASE24Channel

        public BASE24Channel()
        Public constructor (used by Class.forName("...").newInstance())
      • BASE24Channel

        public BASE24Channel​(java.lang.String host,
                             int port,
                             ISOPackager p)
        Construct client ISOChannel
        Parameters:
        host - server TCP Address
        port - server port number
        p - an ISOPackager
        See Also:
        ISOPackager
      • BASE24Channel

        public BASE24Channel​(ISOPackager p)
                      throws java.io.IOException
        Construct server ISOChannel
        Parameters:
        p - an ISOPackager
        Throws:
        java.io.IOException
        See Also:
        ISOPackager
      • BASE24Channel

        public BASE24Channel​(ISOPackager p,
                             java.net.ServerSocket serverSocket)
                      throws java.io.IOException
        constructs a server ISOChannel associated with a Server Socket
        Parameters:
        p - an ISOPackager
        serverSocket - where to accept a connection
        Throws:
        java.io.IOException
        See Also:
        ISOPackager
    • Method Detail

      • sendMessageTrailler

        protected void sendMessageTrailler​(ISOMsg m,
                                           int len)
                                    throws java.io.IOException
        Overrides:
        sendMessageTrailler in class BaseChannel
        Parameters:
        m - the Message to send (in this case it is unused)
        len - message len (ignored)
        Throws:
        java.io.IOException
      • streamReceive

        protected byte[] streamReceive()
                                throws java.io.IOException
        Overrides:
        streamReceive in class BaseChannel
        Returns:
        a byte array with the received message
        Throws:
        java.io.IOException