aboutsummaryrefslogtreecommitdiffstats
path: root/doc/manual
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-10-20 10:32:39 +0200
committerSimon Warta <[email protected]>2015-10-20 16:50:14 +0200
commit34d215b3341bd86b29819bb650d92a2a11f488eb (patch)
tree656ea98cf5e5f3fabfdb89290a12e23d3a10e27d /doc/manual
parent194d7d3682bddbd534e211357dd5f817d01ab7ed (diff)
Update TLS::Server signature in docs
[ci skip]
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/tls.rst29
1 files changed, 15 insertions, 14 deletions
diff --git a/doc/manual/tls.rst b/doc/manual/tls.rst
index 554846c25..ede415af6 100644
--- a/doc/manual/tls.rst
+++ b/doc/manual/tls.rst
@@ -284,20 +284,21 @@ TLS Servers
.. cpp:class:: TLS::Server
- .. cpp:function:: TLS::Server( \
- std::function<void, const byte*, size_t> output_fn, \
- std::function<void, const byte*, size_t> data_cb, \
- std::function<TLS::Alert, const byte*, size_t> alert_cb, \
- TLS::Session_Manager& session_manager, \
- Credentials_Manager& creds, \
- const TLS::Policy& policy, \
- RandomNumberGenerator& rng, \
- std::function<std::string, std::vector<std::string> > proto_chooser,
- const std::vector<std::string>& protocols, \
- bool is_datagram = false, \
- bool reserved_io_buffer_size)
-
-The first 7 arguments as well as the final argument
+ .. cpp:function:: Server( \
+ output_fn output, \
+ data_cb data_cb, \
+ alert_cb alert_cb, \
+ handshake_cb handshake_cb, \
+ Session_Manager& session_manager, \
+ Credentials_Manager& creds, \
+ const Policy& policy, \
+ RandomNumberGenerator& rng, \
+ next_protocol_fn next_proto = next_protocol_fn(), \
+ bool is_datagram = false, \
+ size_t reserved_io_buffer_size = 16*1024 \
+ )
+
+The first 8 arguments as well as the final argument
*reserved_io_buffer_size*, are treated similiarly to the :ref:`client
<tls_client>`.