Example #1
0
 public void DestroyManager()
 {
     for (int i = 0; i < this.Connections.Length; i++)
     {
         if (this.Connections[i] != null)
         {
             this.Connections[i].Dispose();
         }
     }
     this.Connections = null;
     this.Listener    = null;
 }
 public void DestroyManager()
 {
     for (int i = 0; i < this.Connections.Length; i++)
     {
         if (this.Connections[i] != null)
         {
             this.Connections[i].Dispose();
         }
     }
     this.Connections = null;
     this.Listener = null;
 }
Example #3
0
 public TcpConnectionManager(string LocalIP, int Port, int maxSimultaneousConnections)
 {
     this.Connections = new TcpConnection[maxSimultaneousConnections];
     this.Listener    = new TcpConnectionListener(LocalIP, Port, this);
 }
 public TcpConnectionManager(string LocalIP, int Port, int maxSimultaneousConnections)
 {
     this.Connections = new TcpConnection[maxSimultaneousConnections];
     this.Listener = new TcpConnectionListener(LocalIP, Port, this);
 }