stream: add backlog option to stream services, forward to listen()

This commit is contained in:
Martin Willi
2013-07-18 16:00:28 +02:00
parent c5597a4b56
commit 441bb9e7b7
4 changed files with 15 additions and 11 deletions
@@ -42,11 +42,12 @@ struct stream_manager_t {
* Start a new service under an URI, accept()ing client connections.
*
* @param uri URI of service to provide
* @param backlog size of the backlog queue, as passed to listen()
* @param cb callback function invoked for each client connection
* @param data user data to pass to callback
* @return TRUE if service started, FALSE on failure
*/
bool (*start_service)(stream_manager_t *this, char *uri,
bool (*start_service)(stream_manager_t *this, char *uri, int backlog,
stream_service_cb_t cb, void *data);
/**