From d9de939d4f95bce1e9fd30acfa9a5160db3e3426 Mon Sep 17 00:00:00 2001 From: Per Hedbor <ph@opera.com> Date: Wed, 3 Sep 2014 17:02:43 +0200 Subject: [PATCH] Forward the share argument to bind --- lib/modules/SSL.pmod/Port.pike | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/modules/SSL.pmod/Port.pike b/lib/modules/SSL.pmod/Port.pike index f51b2c60d8..247c221c07 100644 --- a/lib/modules/SSL.pmod/Port.pike +++ b/lib/modules/SSL.pmod/Port.pike @@ -75,7 +75,8 @@ mixed query_id() //! @decl int bind(int port, @ //! function(SSL.File|void, mixed|void: int) callback, @ -//! string|void ip) +//! string|void ip, +//! int|void share) //! //! Bind an SSL port. //! @@ -94,6 +95,9 @@ mixed query_id() //! @param ip //! Optional IP-number to bind. //! +//! @param share +//! If true, share the port with other processes +//! //! @returns //! Returns @expr{1@} if binding of the port succeeded, //! and @expr{0@} (zero) on failure. @@ -101,10 +105,10 @@ mixed query_id() //! @seealso //! @[Stdio.Port()->bind()], @[File()->set_accept_callback()], //! @[listen_fd()] -int bind(int port, function callback, string|void ip) +int bind(int port, function callback, string|void ip, int|void share) { accept_callback = callback; - return socket::bind(port, ssl_callback, ip); + return socket::bind(port, ssl_callback, ip, share); } //! @decl int listen_fd(int fd, @ -- GitLab