Beispiel #1
0
        public void Open()
        {
            double begin = Logger.TimeVal();

            if (tcp != null)
            {
                tcp.Close();
            }
            tcp = new RpcTcpClient(host, port);
            net = tcp.GetStream();
            tcp.ReceiveTimeout = timeout;
            openDuration       = Logger.TimeVal() - begin;
        }
Beispiel #2
0
 public void Open()
 {
     double begin = Logger.TimeVal();
       if (tcp != null)
     tcp.Close();
       tcp = new RpcTcpClient(host, port);
       net = tcp.GetStream();
       tcp.ReceiveTimeout = timeout;
       openDuration = Logger.TimeVal()-begin;
 }