Class FwdOpenReq

    • Field Detail

      • sLogger

        protected static org.slf4j.Logger sLogger
      • O2TconnID

        public int O2TconnID
      • T2OconnID

        public int T2OconnID
      • connSN

        public short connSN
      • vendor

        public short vendor
      • origSN

        public int origSN
      • timeoutMult

        public byte timeoutMult
      • O2Trpi

        public int O2Trpi
      • T2Orpi

        public int T2Orpi
      • dirtrigcls

        public byte dirtrigcls
      • mcast

        public java.net.InetAddress mcast
    • Constructor Detail

      • FwdOpenReq

        public FwdOpenReq()
        Required for external deserialization.
      • FwdOpenReq

        public FwdOpenReq​(FwdOpenReq other,
                          int nesting)
      • FwdOpenReq

        public FwdOpenReq​(CipPath target,
                          int service)
      • FwdOpenReq

        public FwdOpenReq​(CipPath target,
                          int service,
                          java.nio.ByteBuffer payload)
      • FwdOpenReq

        public FwdOpenReq​(boolean large)
      • FwdOpenReq

        public FwdOpenReq​(int service,
                          java.nio.ByteBuffer source)
    • Method Detail

      • makeMessagingReq

        public static FwdOpenReq makeMessagingReq​(CipPath route,
                                                  int size)
        Given a network route path and desired size, construct a forward open request to the target's message router.
        Parameters:
        route - Port segments, electronic keys, and network parameter segments only.
        size - Desired buffer size. The result will be a Large Forward Open if > 511.
        Returns:
      • setPayload

        public void setPayload​(java.nio.ByteBuffer source)
        Description copied from class: CxMgrReq
        Implementations must call this method at the beginning of their setPayload() method.
        Specified by:
        setPayload in interface CipMessage
        Overrides:
        setPayload in class CxMgrReq
        Parameters:
        source - Source buffer containing the encoded new payload.
      • putPayload

        public void putPayload​(java.nio.ByteBuffer dest)
        Description copied from class: CxMgrReq
        Implementations must call this method at the beginning of their putPayload() method.
        Specified by:
        putPayload in interface CipMessage
        Overrides:
        putPayload in class CxMgrReq
        Parameters:
        dest - Destination buffer for the encoded payload.
      • payloadLength

        public int payloadLength()
        Description copied from class: CipRequest
        Subclasses must override this unless they populate the payload and payloadActual fields.
        Specified by:
        payloadLength in interface CipMessage
        Overrides:
        payloadLength in class CipRequest
        Returns:
        The byte length of the encoded payload only.
      • accept

        public void accept​(CipReply reply)
        Description copied from class: CipRequest
        Applications and routers call this method with the actual reply to pass back up the chain of callers. Routers must embed some form of ID code in their protocol packets to associate requests with replies. DeviceNet uses originator node address and a 16-bit transaction ID. Ethernet/IP uses the 64-bit Sender Context field of its encapsulation header. CIP over DF1 uses the 16-bit Transaction Number inside of PCCC encapsulation.
        Specified by:
        accept in interface CipReplyConsumer
        Overrides:
        accept in class CipRequest