void SendPublicKey() { // gửi public key string s = RSA_Crypto.PublicKeyString(); clientSocket.Send(Serialize(clientSocket.LocalEndPoint.ToString() + "|All|ClientData|" + s)); }
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"));*/ }