public Connection(IPAddress addr, Int32 port, IConnectionHandler handler)
 {
     try
     {
         this.handler = handler;
         tcpConnection = new TcpClient();
         tcpConnection.Connect(addr, port);
         strm = tcpConnection.GetStream();
         initListener(handler);
     }
     catch( Exception e)
     {
         handler.onConnectionInterrupted(this);
         tcpConnection = null;
     }
 }