networkcomms.net

Networkcomms.net library sending custom class

随声附和 提交于 2019-12-05 08:34:03
问题 Few days ago I was starting to use this library in C#. I was trying to send a custom class when I've encounter an error, here is my code: Main.cs private void button3_Click(object sender, EventArgs e) { listBox1.Items.Add("Sending message to server saying '" + textBox2.Text + "'"); TCPConnection connection = TCPConnection.GetConnection(new ConnectionInfo(serverIP, serverPort)); SendReceiveOptions options = connection.ConnectionDefaultSendReceiveOptions.Clone() as SendReceiveOptions; options

Networkcomms.net library sending custom class

六眼飞鱼酱① 提交于 2019-12-03 20:57:46
Few days ago I was starting to use this library in C#. I was trying to send a custom class when I've encounter an error, here is my code: Main.cs private void button3_Click(object sender, EventArgs e) { listBox1.Items.Add("Sending message to server saying '" + textBox2.Text + "'"); TCPConnection connection = TCPConnection.GetConnection(new ConnectionInfo(serverIP, serverPort)); SendReceiveOptions options = connection.ConnectionDefaultSendReceiveOptions.Clone() as SendReceiveOptions; options.DataProcessors.Add(DPSManager.GetDataProcessor<RijndaelPSKEncrypter>()); RijndaelPSKEncrypter