Ejemplo n.º 1
0
        public void TransmitPublicKey()
        {
            try
            {
                if (!this._clientInfo.LoggedIn)
                {
                    return;
                }

                this.ConnectionToServer.BinaryWriter.Write(IMCommands.PublicKey);
                byte[] publicKeyBytes = PublicKey.ObjectToByte();
                this.ConnectionToServer.BinaryWriter.Write(publicKeyBytes.Length);
                this.ConnectionToServer.BinaryWriter.Write(publicKeyBytes);
            }
            catch (Exception e)
            {
                e.GetType();
            }
        }