listen(2) wrapper. Equivalent to listen(m_socket, backlog). Code that uses this wrapper can be unit tested if this method is overridden by a mock Sock implementation.
Declared in <util/sock.h>
[[nodiscard]]
virtual
int
Listen(int backlog) const;
0 on success, or -1 on error (with errno set).
The return value should not be discarded.
| Name | Description |
|---|---|
| backlog | Maximum length of the queue of pending connections. |