public NetworkConnection ConnectToRead(IPAddress ip, int port) { NetworkConnection netCon = new NetworkConnection(ip, port); netCon.OnError += NetCon_OnError; netCon.OnMessageReceived += NetCon_OnMessageReceived; netCon.Connect(); netCon.StartRead(); this.connections.Add(netCon); return netCon; }