summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authorlimeboy <that.lemon+tcl@gmai.com>2016-11-24 12:47:21 (GMT)
committerlimeboy <that.lemon+tcl@gmai.com>2016-11-24 12:47:21 (GMT)
commit5b33616e5080b53d8b1e8b8608a98d824a952ee9 (patch)
treeff124e26492a522aa6a4f97ce86dcbb4625938bd /generic/tcl.h
parent33ded984ff02df26e0faf1d254abd2ea6acc0070 (diff)
downloadtcl-5b33616e5080b53d8b1e8b8608a98d824a952ee9.zip
tcl-5b33616e5080b53d8b1e8b8608a98d824a952ee9.tar.gz
tcl-5b33616e5080b53d8b1e8b8608a98d824a952ee9.tar.bz2
Implement the whole TIP 456 specification.
Also introduces the `-reuseaddr' and `-reuseport' options for the `socket' command.
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index eb53c70..75a947a 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -2371,6 +2371,13 @@ typedef int (Tcl_ArgvGenFuncProc)(ClientData clientData, Tcl_Interp *interp,
/*
*----------------------------------------------------------------------------
+ * Definitions needed for the Tcl_OpenTcpServerEx function. [TIP #456]
+ */
+#define TCL_TCPSERVER_REUSEADDR (1<<0)
+#define TCL_TCPSERVER_REUSEPORT (1<<1)
+
+/*
+ *----------------------------------------------------------------------------
* Single public declaration for NRE.
*/