Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Forgot to export evhtp_accept_socke.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Ellzey committed Nov 26, 2015
1 parent a497a14 commit c94cb5b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions evhtp.h
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,19 @@ EVHTP_EXPORT int evhtp_bind_socket(evhtp_t * htp, const char * addr, uint16_t po
*/
EVHTP_EXPORT void evhtp_unbind_socket(evhtp_t * htp);


/**
* @brief create the listener plus setup various options with an already-bound
* socket.
*
* @param htp
* @param sock
* @param backlog
*
* @return 0 on success, -1 on error (check errno)
*/
EVHTP_EXPORT int evhtp_accept_socke(evhtp_t * htp, evutil_socket_t sock, int backlog);

/**
* @brief bind to an already allocated sockaddr.
*
Expand Down

0 comments on commit c94cb5b

Please sign in to comment.