Package org.jcsp.net2

Class RawNetworkMessageFilter.FilterTX

    • Constructor Detail

      • FilterTX

        public FilterTX()
        Creates a new output filter
    • Method Detail

      • filterTX

        public byte[] filterTX​(Object obj)
                        throws IOException
        Will send a byte array as raw bytes
        Specified by:
        filterTX in interface NetworkMessageFilter.FilterTx
        Parameters:
        obj - The object to send. This must be a byte array
        Returns:
        The same byte array as sent in
        Throws:
        IOException - Thrown if the sent object is not a byte array