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 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
Yeah, great, getting complicated pretty fast...
Oblivion wrote on Mon, 31 May 2021 17:23Hello 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
|
|
|
|
|
SIGPIPE problem
By: zsolt on Wed, 26 May 2021 05:19
|
|
|
Re: SIGPIPE problem
By: mirek on Thu, 27 May 2021 09:14
|
|
|
Re: SIGPIPE problem
By: zsolt on Thu, 27 May 2021 16:41
|
|
|
Re: SIGPIPE problem
By: Novo on Fri, 28 May 2021 20:41
|
|
|
Re: SIGPIPE problem
By: mirek on Mon, 31 May 2021 09:44
|
|
|
Re: SIGPIPE problem
By: zsolt on Mon, 31 May 2021 11:01
|
|
|
Re: SIGPIPE problem
By: mirek on Mon, 31 May 2021 11:21
|
|
|
Re: SIGPIPE problem
|
|
|
Re: SIGPIPE problem
By: zsolt on Mon, 31 May 2021 17:05
|
|
|
Re: SIGPIPE problem
By: zsolt on Mon, 31 May 2021 17:06
|
|
|
Re: SIGPIPE problem
By: zsolt on Mon, 31 May 2021 17:10
|
|
|
Re: SIGPIPE problem
By: Novo on Mon, 31 May 2021 17:18
|
|
|
Re: SIGPIPE problem
|
|
|
Re: SIGPIPE problem
By: mirek on Tue, 01 June 2021 09:19
|
|
|
Re: SIGPIPE problem
|
Goto Forum:
Current Time: Thu May 09 06:44:53 CEST 2024
Total time taken to generate the page: 0.02653 seconds
|