private void button4_Click(object sender, EventArgs e) { key_gen.generate(); string pb = System.Text.Encoding.UTF8.GetString(key_gen.pbkey()); UDP_Sender.sendinfo(publicOnlyKeyXML); label1.Text = "Info sent sucessfully!"; //UDP_Sender.sender(publicOnlyKeyXML); label1.Text = "Pbkey sent sucessfully!"; }
void System.IDisposable.Dispose() { UDP_Reciver.Stop(); UDP_Sender.Stop(); TCP.Stop(); }