Interface ConnectionEventListener

    • Method Detail

      • newASdu

        void newASdu​(Connection connection,
                     ASdu aSdu)
        Invoked when a new ASDU arrives.
        Parameters:
        aSdu - the ASDU that arrived.
      • connectionClosed

        void connectionClosed​(Connection connection,
                              java.io.IOException cause)
        Invoked when an IOException occurred while listening for incoming ASDUs. An IOException implies that the Connection that feeds this listener was automatically closed and can no longer be used to send commands or receive ASDUs.
        Parameters:
        cause - the exception that occurred.
      • dataTransferStateChanged

        void dataTransferStateChanged​(Connection connection,
                                      boolean stopped)
        Informs when the state of data transfer changed.
        Parameters:
        stopped - true if data transfer stopped, false if data transfer started