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

Home » U++ Library support » U++ Core » SIGPIPE problem
Re: SIGPIPE problem [message #57152 is a reply to message #57148] Tue, 01 June 2021 09:19 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Yeah, great, getting complicated pretty fast... Smile

Oblivion wrote on Mon, 31 May 2021 17:23
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


Is it guaranteed to be #define though?

But perhaps even if it is not, it would be worth it...

Mirek
 
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 14:09:04 GMT+2 2026

Total time taken to generate the page: 0.00782 seconds