uasync: pass socket name to all add_socket call sites
This commit is contained in:
1 parent
c36cebe357
commit
b33caa56b8
31 files changed
+61
-59
No files matched your search
@@ -172,7 +172,7 @@ int main(void) {
|
||||
struct sockaddr_in ea = {.sin_family = AF_INET, .sin_addr = {.s_addr = inet_addr("127.0.0.1")}, .sin_port = htons(UDP_ECHO_PORT)};
|
||||
if (bind(g_echo_sock, (struct sockaddr*)&ea, sizeof(ea)) < 0) { printf("[FAIL] echo bind: %s\n", strerror(errno)); goto done; }
|
||||
socket_set_nonblocking(g_echo_sock);
|
||||
g_echo_id = uasync_add_socket_t(ua, g_echo_sock, udp_echo_cb, NULL, NULL, NULL);
|
||||
g_echo_id = uasync_add_socket_t(ua, g_echo_sock, udp_echo_cb, NULL, NULL, "udp_echo", NULL);
|
||||
|
||||
g_to_id = uasync_set_timeout(ua, 100, NULL, monitor, "mon");
|
||||
void* to_id = uasync_set_timeout(ua, TEST_TIMEOUT_MS * 10, NULL, test_timeout, "to");
|
||||
|
||||
Reference in new issue
Block a user