Skip to content
Snippets Groups Projects
Commit d9de939d authored by Per Hedbor's avatar Per Hedbor
Browse files

Forward the share argument to bind

parent fcde91cf
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,8 @@ mixed query_id() ...@@ -75,7 +75,8 @@ mixed query_id()
//! @decl int bind(int port, @ //! @decl int bind(int port, @
//! function(SSL.File|void, mixed|void: int) callback, @ //! function(SSL.File|void, mixed|void: int) callback, @
//! string|void ip) //! string|void ip,
//! int|void share)
//! //!
//! Bind an SSL port. //! Bind an SSL port.
//! //!
...@@ -94,6 +95,9 @@ mixed query_id() ...@@ -94,6 +95,9 @@ mixed query_id()
//! @param ip //! @param ip
//! Optional IP-number to bind. //! Optional IP-number to bind.
//! //!
//! @param share
//! If true, share the port with other processes
//!
//! @returns //! @returns
//! Returns @expr{1@} if binding of the port succeeded, //! Returns @expr{1@} if binding of the port succeeded,
//! and @expr{0@} (zero) on failure. //! and @expr{0@} (zero) on failure.
...@@ -101,10 +105,10 @@ mixed query_id() ...@@ -101,10 +105,10 @@ mixed query_id()
//! @seealso //! @seealso
//! @[Stdio.Port()->bind()], @[File()->set_accept_callback()], //! @[Stdio.Port()->bind()], @[File()->set_accept_callback()],
//! @[listen_fd()] //! @[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; accept_callback = callback;
return socket::bind(port, ssl_callback, ip); return socket::bind(port, ssl_callback, ip, share);
} }
//! @decl int listen_fd(int fd, @ //! @decl int listen_fd(int fd, @
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment