public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1878] [Ada] Add some OS constants to control keepalive on TCP connections
@ 2021-06-29 14:24 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-06-29 14:24 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0bc7cf47c1266f9ae510c70833b5691c693c769f

commit r12-1878-g0bc7cf47c1266f9ae510c70833b5691c693c769f
Author: Pascal Obry <obry@adacore.com>
Date:   Wed Apr 7 09:05:06 2021 +0200

    [Ada] Add some OS constants to control keepalive on TCP connections
    
    gcc/ada/
    
            * s-oscons-tmplt.c: Add some OS constants.

Diff:
---
 gcc/ada/s-oscons-tmplt.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c
index 25a4df0cedc..d42e663fdde 100644
--- a/gcc/ada/s-oscons-tmplt.c
+++ b/gcc/ada/s-oscons-tmplt.c
@@ -1501,6 +1501,21 @@ CNS(MSG_Forced_Flags, "")
 #endif
 CND(TCP_NODELAY, "Do not coalesce packets")
 
+#ifndef TCP_KEEPCNT
+# define TCP_KEEPCNT -1
+#endif
+CND(TCP_KEEPCNT, "Maximum number of keepalive probes")
+
+#ifndef TCP_KEEPIDLE
+# define TCP_KEEPIDLE -1
+#endif
+CND(TCP_KEEPIDLE, "Idle time before TCP starts sending keepalive probes")
+
+#ifndef TCP_KEEPINTVL
+# define TCP_KEEPINTVL -1
+#endif
+CND(TCP_KEEPINTVL, "Time between individual keepalive probes")
+
 #ifndef SO_REUSEADDR
 # define SO_REUSEADDR -1
 #endif


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-29 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 14:24 [gcc r12-1878] [Ada] Add some OS constants to control keepalive on TCP connections Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).