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 TcpConnectionManager(string LocalIP, int Port, int maxSimultaneousConnections) { this.Connections = new TcpConnection[maxSimultaneousConnections]; this.Listener = new TcpConnectionListener(LocalIP, Port, this); }