Class TcpIpPort.IOLinkProducer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      int connID  
      int seq  
      java.net.InetSocketAddress target  
    • Constructor Summary

      Constructors 
      Constructor Description
      IOLinkProducer​(java.net.InetSocketAddress target, int connID)  
    • 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)
      UDP I/O Packets don't have full encapsulation, and don't carry any transaction ID.
      • Methods inherited from class java.lang.Object

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

      • target

        public final java.net.InetSocketAddress target
      • connID

        public final int connID
      • seq

        public int seq
    • Constructor Detail

      • IOLinkProducer

        public IOLinkProducer​(java.net.InetSocketAddress target,
                              int connID)
    • Method Detail

      • linkProduce

        public void linkProduce​(long txID,
                                java.nio.ByteBuffer payload)
        UDP I/O Packets don't have full encapsulation, and don't carry any transaction ID. The txID is dropped on the floor.
        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