Dear CSP community Hello,
I am new to CSP, I am trying to execute the example in this git for client-server protocol.
csp_server_client.c example.
I am running this example on a virtual machine and when I execute these lines my machine crashes and reboots.
/* Wait for execution to end (ctrl+c) */
while (1)
{
sleep (3);
if (test_mode)
{
/* Test mode is intended for checking that host & client can exchange packets over loopback */
if (server_received < 5)
{
csp_print("Server received %u packets\n", server_received);
exit (1);
}
csp_print("Server received %u packets\n", server_received);
exit (0);
}
}
Do you have any idea about this issue?
Normally, the code should run il a loopback if any device is connected to my host computer.
Thank you in advance for your help