Class TcpConx.EncapUnitProducer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void disconnect()
      When a connection is closed or an application forces a disconnect, this shutdown method is called to clean up.
      boolean isDisconnected()  
      void linkProduce​(long txID, java.nio.ByteBuffer payload)
      Link Producer objects handle data flow from generic connections to abstract transport links.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • prodid

        protected final int prodid
      • disconnectFlag

        protected boolean disconnectFlag
    • Constructor Detail

      • EncapUnitProducer

        public EncapUnitProducer​(ConxInstance conx,
                                 int prodid)
    • Method Detail

      • linkProduce

        public void linkProduce​(long txID,
                                java.nio.ByteBuffer payload)
        Description copied from interface: LinkProducer
        Link Producer objects handle data flow from generic connections to abstract transport links. When carrying messaging traffic, the txID uniquely identifies the request/reply pair; typically the encapsulation sender context.
        Specified by:
        linkProduce in interface LinkProducer
        Parameters:
        txID - Transport layer transaction ID uniquely identifying this message or reply, if applicable. Zero for I/O connections.
        payload - Complete CIP data payload, including CIP sequence number, if any.
      • disconnect

        public void disconnect()
        Description copied from interface: AppLinkBase
        When a connection is closed or an application forces a disconnect, this shutdown method is called to clean up. It should close the connection when called by the application.
        Specified by:
        disconnect in interface AppLinkBase