Пример #1
0
        public TcpServerPort(PortConfig portConfig, IPPortEndpointConfig serverPortEndpointConfig)
            : base(portConfig, new IPPortEndpointConfig("", new IPEndPoint(IPAddress.None, 0)), "TcpServerPort")
        {
            serverEPConfig = serverPortEndpointConfig;

            PortBehavior = new PortBehaviorStorage()
            {
                DataDeliveryBehavior = DataDeliveryBehavior.ByteStream, IsNetworkPort = true, IsServerPort = true
            };
        }
Пример #2
0
        public TcpClientPort(PortConfig portConfig, IPPortEndpointConfig ipPortEndpointConfig, string className)
            : base(portConfig, className)
        {
            targetEPConfig = ipPortEndpointConfig;

            PortBehavior = new PortBehaviorStorage()
            {
                DataDeliveryBehavior = DataDeliveryBehavior.ByteStream, IsNetworkPort = true, IsClientPort = true
            };

            PrivateBaseState = new BaseState(false, true);
            PublishBaseState("object constructed");
        }
Пример #3
0
        public ComPort(PortConfig portConfig, ComPortConfig comPortConfig)
            : base(portConfig, "ComPort")
        {
            this.comPortConfig = comPortConfig;
            PortBehavior       = new PortBehaviorStorage()
            {
                DataDeliveryBehavior = DataDeliveryBehavior.ByteStream, IsClientPort = true
            };

            PrivateBaseState = new BaseState(false, true);
            PublishBaseState("object constructed");

            CreatePort();
        }
Пример #4
0
        public TcpServerPort(PortConfig portConfig, IPPortEndpointConfig serverPortEndpointConfig)
            : base(portConfig, new IPPortEndpointConfig("", new IPEndPoint(IPAddress.None, 0)), "TcpServerPort")
        {
            serverEPConfig = serverPortEndpointConfig;

            PortBehavior = new PortBehaviorStorage() { DataDeliveryBehavior = DataDeliveryBehavior.ByteStream, IsNetworkPort = true, IsServerPort = true };
        }
Пример #5
0
        public TcpClientPort(PortConfig portConfig, IPPortEndpointConfig ipPortEndpointConfig, string className)
            : base(portConfig, className)
        {
            targetEPConfig = ipPortEndpointConfig;

            PortBehavior = new PortBehaviorStorage() { DataDeliveryBehavior = DataDeliveryBehavior.ByteStream, IsNetworkPort = true, IsClientPort = true };

            PrivateBaseState = new BaseState(false, true);
            PublishBaseState("object constructed");
        }
Пример #6
0
        public ComPort(PortConfig portConfig, ComPortConfig comPortConfig)
            : base(portConfig, "ComPort")
        {
            this.comPortConfig = comPortConfig;
            PortBehavior = new PortBehaviorStorage() { DataDeliveryBehavior = DataDeliveryBehavior.ByteStream, IsClientPort = true };

            PrivateBaseState = new BaseState(false, true);
            PublishBaseState("object constructed");

            CreatePort();
        }