예제 #1
0
        protected volatile bool terminated;                 // necessary to stop receiving data


        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public UdpChannelLogic(ILineContext lineContext, ChannelConfig channelConfig)
            : base(lineContext, channelConfig)
        {
            options     = new UdpChannelOptions(channelConfig.CustomOptions);
            requestArgs = new IncomingRequestArgs();
            deviceLock  = new object();

            masterConn = null;
            slaveConn  = null;
            deviceDict = null;
            terminated = false;
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public FrmUdpChannelOptions(ChannelConfig channelConfig)
     : this()
 {
     this.channelConfig = channelConfig ?? throw new ArgumentNullException(nameof(channelConfig));
     options            = new UdpChannelOptions(channelConfig.CustomOptions);
 }