Relative Content

Tag Archive for clinuxsocketsraspberry-pi4

setsockopt Timeout Not working Properly In Raspberry Pi

I am working with raspberry pi 4 for connecting devices with tcp/ip i need some delay for socket timeout if no response from my server. The raspberry pi act as a client i am using the following C program code for socket, In that for timeout i use setsockopt but it doesn’t create the expected time delay after some fraction of seconds it is getting timeout i want minimum 2 seconds delay.