@@ -111,7 +111,7 @@ class acceptor : public socket
111
111
* @param reuse A reuse option for the socket. This can be SO_REUSEADDR
112
112
* or SO_REUSEPORT, and is set before it tries to bind. A
113
113
* value of zero doesn;t set an option.
114
- * @throws std::system_error
114
+ * @throws std::system_error on failure
115
115
*/
116
116
acceptor (const sock_address& addr, int queSize = DFLT_QUE_SIZE, int reuse = 0 ) {
117
117
if (auto res = open (addr, queSize, reuse); !res)
@@ -227,7 +227,7 @@ class acceptor_tmpl : public acceptor
227
227
* Creates a acceptor and starts it listening on the specified address.
228
228
* @param addr The TCP address on which to listen.
229
229
* @param queSize The listener queue size.
230
- * @throws std::system_error
230
+ * @throws std::system_error on failure
231
231
*/
232
232
acceptor_tmpl (const addr_t & addr, int queSize = DFLT_QUE_SIZE, int reuse = 0 ) {
233
233
if (auto res = open (addr, queSize, reuse); !res)
@@ -260,7 +260,7 @@ class acceptor_tmpl : public acceptor
260
260
* host.
261
261
* @param port The TCP port on which to listen.
262
262
* @param queSize The listener queue size.
263
- * @throws std::system_error
263
+ * @throws std::system_error on failure
264
264
*/
265
265
acceptor_tmpl (in_port_t port, int queSize = DFLT_QUE_SIZE) {
266
266
if (auto res = open (port, queSize); !res)
0 commit comments