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 }; }
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"); }
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(); }