i am building a network system with connects a raspberry pi 4 and my computer my computer should send some things to the raspberry pi and every 10 iterations a request for the value of a distance sensor
i tried sending the request but the request is being sent only 6 times and then the program in my computer gets stuck on the recv part(waiting to get the information but doesnt getting anything)
i tried doing a timeout to the recv method but it doesnt work, does anyone know how to do that the recv() function will only try to get the information for a specific time? like doing that the socket will try getting information each time for a specific time and then more to the next iteration