001package jmri.jmrix.bidib.tcpserver;
002
003import java.io.ByteArrayOutputStream;
004
005import org.bidib.jbidibc.core.BidibMessageProcessor;
006import org.bidib.jbidibc.messages.exception.ProtocolException;
007
008/**
009 * 
010 * @author Eckart Meyer Copyright (C) 2023
011 *
012 */
013public interface ServerBidibMessageProcessor extends BidibMessageProcessor {
014
015    /**
016     * Publish the response in the provided byte array output stream.
017     * 
018     * @param output
019     *            the output stream that contains the responses
020     * @throws ProtocolException when can't provide sequence
021     */
022    void publishResponse(final ByteArrayOutputStream output) throws ProtocolException;
023
024    void enable();
025
026    void disable();
027
028    //void purgeReceivedDataInBuffer();
029}