Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 13976
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: Thu May 09 06:44:53 CEST 2024

Total time taken to generate the page: 0.02653 seconds