Hi, Actually my scenario is this socket connection is dedicated. i have to check the connection before for every string sending, is that below statement can be able check the connection as my case or not?
if(0 != getsockopt(l_ClientSocket, SOL_SOCKET, SO_KEEPALIVE, &error_code, &error_code_size))
Hence, this case will perform only transmitter mode.
What I have tried:
getsockopt will check the connection, that i seen in google but not working