Hello again! I have encountered another problem. (Anyway, I don’t know if this is a bag or a feauture)
When we use this code:
`public TCPConnection Voice;
public TCPConnection Pic;
private void button1_Click(object sender, RoutedEventArgs e)
{
Voice = TCPConnection.GetConnection(new ConnectionInfo(“192.168.1.101”, 27017), new SendReceiveOptions<NullSerializer, QuickLZ>());
Pic = TCPConnection.GetConnection(new ConnectionInfo(“192.168.1.101”, 27018), new SendReceiveOptions<NullSerializer, QuickLZ>());
}`
If we try to send object by TCPConnection Voice, the program throws exception: “Attempting to send packet on connection which has been closed or is currently closing.”
Though, this code works correctly:
public TCPConnection Voice;
public TCPConnection Pic = TCPConnection.GetConnection(new ConnectionInfo("192.168.1.101", 27018), new SendReceiveOptions<NullSerializer, QuickLZ>());
private void button1_Click(object sender, RoutedEventArgs e)
{
Voice = TCPConnection.GetConnection(new ConnectionInfo("192.168.1.101", 27017), new SendReceiveOptions<NullSerializer, QuickLZ>());
}
Apparently,when we open the second TCPConnection, the first connection closes.
Am I doing something wrong or is this a bug?
Thanks.