示例#1
0
        void SendPublicKey()
        {
            // gửi public key
            string s = RSA_Crypto.PublicKeyString();

            clientSocket.Send(Serialize(clientSocket.LocalEndPoint.ToString() + "|All|ClientData|" + s));
        }
示例#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"));*/
        }