U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » SIGPIPE problem
Re: SIGPIPE problem [message #57148 is a reply to message #57146] Mon, 31 May 2021 17:23 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1276
Registered: August 2007
Senior Contributor
Hello zsolt,


It looks nice but I'm afraid that won't work. SO_NOSIGPIPE should be set using the setsockopt() function, preferably at socket initialization.

E.g.

#ifdef SO_NOSIGPIPE
   const int val = 1;
   setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof(val));
#endif



Best regards,
Oblivion


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Small optimization
Next Topic: MSVS15x64: Compile Error C3256 C3259 C3250 in Fn.h findarg
Goto Forum:
  


Current Time: Sat Sep 05 15:03:34 GMT+2 2026

Total time taken to generate the page: 0.00663 seconds