Class EncapPort

  • All Implemented Interfaces:
    DataContext, AttributeHolder, CipMsgProcessor, java.lang.Comparable<CipInstance>
    Direct Known Subclasses:
    TcpIpPort

    public class EncapPort
    extends AbstractPort
    Partial implementation of an Ethernet/IP Encapsulation port. Includes just Class3 origination--no local listening TCP or UDP ports. If not null, the InetAddress provided at creation will be used as the source address for outbound connections.

    The TcpIpPort class extends this to provide the Class 3 listeners and the Class 0/1 UDP support.

    • Field Detail

      • newSessionID

        public static java.util.concurrent.atomic.AtomicInteger newSessionID
      • inetaddr

        protected final java.net.InetAddress inetaddr
      • inboundEnabled

        protected boolean inboundEnabled
      • outboundEnabled

        protected boolean outboundEnabled
      • encapWork

        protected io.netty.channel.EventLoopGroup encapWork
    • Constructor Detail

      • EncapPort

        public EncapPort​(java.lang.String name,
                         java.net.InetAddress fromAddress)
      • EncapPort

        protected EncapPort​(InstanceSeg seg,
                            PortMgr parent,
                            int port,
                            java.lang.String name,
                            java.net.InetAddress fromAddress,
                            int threads)
    • Method Detail

      • isInboundEnabled

        public boolean isInboundEnabled()
      • setInboundEnabled

        public void setInboundEnabled​(boolean inboundEnabled)
      • isOutboundEnabled

        public boolean isOutboundEnabled()
      • setOutboundEnabled

        public void setOutboundEnabled​(boolean outboundEnabled)
      • getInetAddr

        public java.net.InetAddress getInetAddr()
      • dedicatedUCMM

        public CipMsgProcessor dedicatedUCMM​(java.net.InetSocketAddress target)