public Connection(IPAddress ip, IServerListener server) { _server = server; try { _client = new TcpClient(); _client.Connect(ip, 8080); _stream = _client.GetStream(); _server.OnConnected(); Read(); } catch (Exception e) { _server.OnErrorReceived(e.StackTrace); } }