Ejemplo n.º 1
0
 private void IPong()
 {
     Vault_PingPong pong = new Vault_PingPong();
     pong.Read(fStream);
     if (Pong != null)
         Pong(pong.fTransID, pong.fPingTime, pong.fPayload);
 }
Ejemplo n.º 2
0
        public uint Ping(uint pingTime, byte[] payload)
        {
            Vault_PingPong ping = new Vault_PingPong();
            ping.fPayload = payload;
            ping.fPingTime = pingTime;
            ping.fTransID = IGetTransID();

            ResetIdleTimer();
            lock (fStream) {
                fStream.WriteUShort((ushort)VaultCli2Srv.PingRequest);
                ping.Write(fStream);
            }

            return ping.fTransID;
        }