Announcement

Collapse
No announcement yet.

SetSockOpt set receive Timeout...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SetSockOpt set receive Timeout...

    Hello,

    how i can change the receive timeout to prevent blocking mode for 2 hour?

    My code:
    PHP Code:
    /*Set socket option for receive timeout to prevent blocking mode forever*/
    if(!setsockopt(tcpClientSockIPPROTO_IPSO_RCVTIMEO,?,? ))
    {
      
    snprintf(UniBuffersizeof(UniBuffer),"SetSocketOpt failed!\r\n");
      
    SerialWrite(Def_Serial_DebugUniBufferstrlen(UniBuffer), true);

    Which 2 last parameter i must give the function?

    Thanks for help

    greets Issa
Working...
X