Go to the source code of this file.
Functions | |
void | alloc_buffer (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) |
int | main () |
uv_buf_t | make_discover_msg () |
void | on_read (uv_udp_t *req, ssize_t nread, const uv_buf_t *buf, const struct sockaddr *addr, unsigned flags) |
void | on_send (uv_udp_send_t *req, int status) |
Variables | |
uv_loop_t * | loop |
uv_udp_t | recv_socket |
uv_udp_t | send_socket |
void alloc_buffer | ( | uv_handle_t * | handle, |
size_t | suggested_size, | ||
uv_buf_t * | buf | ||
) |
Definition at line 12 of file libuv/docs/code/udp-dhcp/main.c.
int main | ( | ) |
Definition at line 104 of file libuv/docs/code/udp-dhcp/main.c.
uv_buf_t make_discover_msg | ( | ) |
Definition at line 42 of file libuv/docs/code/udp-dhcp/main.c.
void on_read | ( | uv_udp_t * | req, |
ssize_t | nread, | ||
const uv_buf_t * | buf, | ||
const struct sockaddr * | addr, | ||
unsigned | flags | ||
) |
Definition at line 17 of file libuv/docs/code/udp-dhcp/main.c.
void on_send | ( | uv_udp_send_t * | req, |
int | status | ||
) |
Definition at line 97 of file libuv/docs/code/udp-dhcp/main.c.
uv_loop_t* loop |
Definition at line 8 of file libuv/docs/code/udp-dhcp/main.c.
uv_udp_t recv_socket |
Definition at line 10 of file libuv/docs/code/udp-dhcp/main.c.
uv_udp_t send_socket |
Definition at line 9 of file libuv/docs/code/udp-dhcp/main.c.