Functions | |
drizzle_con_st * | drizzle_con_add_tcp_listen (drizzle_st *drizzle, drizzle_con_st *con, const char *host, in_port_t port, int backlog, drizzle_con_options_t options) |
drizzle_con_st * | drizzle_con_add_uds_listen (drizzle_st *drizzle, drizzle_con_st *con, const char *uds, int backlog, drizzle_con_options_t options) |
drizzle_con_st * | drizzle_con_ready_listen (drizzle_st *drizzle) |
drizzle_con_st * | drizzle_con_accept (drizzle_st *drizzle, drizzle_con_st *con, drizzle_return_t *ret_ptr) |
drizzle_con_st* drizzle_con_add_tcp_listen | ( | drizzle_st * | drizzle, |
drizzle_con_st * | con, | ||
const char * | host, | ||
in_port_t | port, | ||
int | backlog, | ||
drizzle_con_options_t | options | ||
) |
Add TCP (IPv4 or IPv6) connection for listening with common arguments.
[in] | drizzle | Drizzle structure previously initialized with drizzle_create() or drizzle_clone(). |
[in] | con | Caller allocated structure, or NULL to allocate one. |
[in] | host | Host to listen on. This may be a hostname to resolve, an IPv4 address, or an IPv6 address. This is passed directly to getaddrinfo(). |
[in] | port | Port to connect to. |
[in] | backlog | Number of backlog connections passed to listen(). |
[in] | options | Drizzle connection options to add. |
drizzle_con_st* drizzle_con_add_uds_listen | ( | drizzle_st * | drizzle, |
drizzle_con_st * | con, | ||
const char * | uds, | ||
int | backlog, | ||
drizzle_con_options_t | options | ||
) |
Add unix domain socket connection for listening with common arguments.
[in] | drizzle | Drizzle structure previously initialized with drizzle_create() or drizzle_clone(). |
[in] | con | Caller allocated structure, or NULL to allocate one. |
[in] | uds | Path to unix domain socket to use for listening. |
[in] | backlog | Number of backlog connections passed to listen(). |
[in] | options | Drizzle connection options to add. |
drizzle_con_st* drizzle_con_ready_listen | ( | drizzle_st * | drizzle | ) |
Get next connection marked for listening that is ready for I/O.
[in] | drizzle | Drizzle structure previously initialized with drizzle_create() or drizzle_clone(). |
drizzle_con_st* drizzle_con_accept | ( | drizzle_st * | drizzle, |
drizzle_con_st * | con, | ||
drizzle_return_t * | ret_ptr | ||
) |
Accept a new connection and initialize the connection structure for it.
[in] | drizzle | Drizzle structure previously initialized with drizzle_create() or drizzle_clone(). |
[in] | con | Caller allocated structure, or NULL to allocate one. |
[out] | ret_ptr | Standard drizzle return value. |