public void Init() { if (!running) { running = true; threads = new List <ServerThreadData>(); TCPChannelManager cm = (TCPChannelManager)gateway.GetChannelManager("Ethernet:TCP"); foreach (var device in cm.ListNetworkDevices()) { ServerThreadData std = new ServerThreadData(this, device); threads.Add(std); } } }
private void PrepareChannels() { channelManagers = new Dictionary<string, ChannelManager>(); channelManagers["Ethernet:TCP"] = new TCPChannelManager(settings.eth.tcp.port, settings.eth.tcp.passivePortRange); //channelManagers["WebSocket"] = new WebSocketChannelManager(settings.websocket.hostName, settings.websocket.port, settings.websocket.timeout); }
private void PrepareChannels() { channelManagers = new Dictionary <string, ChannelManager>(); channelManagers["Ethernet:TCP"] = new TCPChannelManager(settings.eth.tcp.port, settings.eth.tcp.passivePortRange); //channelManagers["WebSocket"] = new WebSocketChannelManager(settings.websocket.hostName, settings.websocket.port, settings.websocket.timeout); }