Exemplo n.º 1
0
        void SendPublicKey()
        {
            // gửi public key
            string s = RSA_Crypto.PublicKeyString();

            clientSocket.Send(Serialize(clientSocket.LocalEndPoint.ToString() + "|All|ClientData|" + s));
        }
Exemplo n.º 2
0
        void SendPublicKey()
        {
            string s = RSA_Crypto.PublicKeyString();

            client.Send(Serialize(client.LocalEndPoint.ToString() + "|all|" + s));
            //client.Send(Serialize(RSA_Crypto.PublicKeyString()));
            /*client.Send(Serialize("hello"));*/
        }