Class LocalConx

    • Constructor Detail

      • LocalConx

        public LocalConx​(InstanceSeg inst,
                         ConxClass parent,
                         FwdOpenReq outreq,
                         java.lang.String name)
        Unlike other connections, which may have unknown delays in remote processing, local connections either succeed or fail synchronously.
        Parameters:
        inst - Instance segment, or null to auto-select when parent is present
        parent -
        outreq -
      • LocalConx

        public LocalConx​(ConxClass parent,
                         FwdOpenReq request,
                         java.lang.String name)
    • Method Detail

      • isOrigin

        public boolean isOrigin()
        Description copied from class: ConxInstance
        Generic CIP connections are either originators or targets. In messaging connections, originators produce requests while targets produce replies.

        Within this protocol implementation, originators produce on the link side with the O2T timing and parameters, and consume on the link side with the T2O timing and parameters.

        When a connection is obtained from a successful Forward Open Response, the recipient must examine whether it is an originator or a target. If an originator, the recipient must assign to the appConsumer field and use the appProduce() method. If a target, the recipient must assign to the linkProducer field and use the linkConsume() method.

        Specified by:
        isOrigin in class ConxInstance
        Returns: