Exemple #1
0
 private void TcpSocket_SocketError(object sender, InSimErrorEventArgs e)
 {
     UdpSocket.Disconnect();
     OnInSimError(e);
 }
Exemple #2
0
 private void TcpSocket_ConnectionLost(object sender, EventArgs e)
 {
     UdpSocket.Disconnect();
     OnDisconnected(new DisconnectedEventArgs(DisconnectReason.Lost));
 }