Beispiel #1
0
 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);
         }
     }
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 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);
 }