gsocketlistener: Clarify when g_socket_listener_set_backlog() works

Spotted by Paolo Borelli.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Fixes: #940
This commit is contained in:
Philip Withnall 2019-06-17 15:19:46 +01:00
parent 3addc38ca2
commit 063722ef80

View File

@ -965,7 +965,9 @@ g_socket_listener_accept_finish (GSocketListener *listener,
* @listener: a #GSocketListener
* @listen_backlog: an integer
*
* Sets the listen backlog on the sockets in the listener.
* Sets the listen backlog on the sockets in the listener. This must be called
* before adding any sockets, addresses or ports to the #GSocketListener (for
* example, by calling g_socket_listener_add_inet_port()) to be effective.
*
* See g_socket_set_listen_backlog() for details
*