Changes in uspace/srv/net/udp/sock.c [b1bd89ea:0d520a2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/sock.c
rb1bd89ea r0d520a2 43 43 #include <ipc/services.h> 44 44 #include <ipc/socket.h> 45 #include <net/modules.h> 45 46 #include <net/socket.h> 46 47 #include <ns.h> … … 133 134 assert(sock_core != NULL); 134 135 sock->sock_core = sock_core; 135 136 137 138 refresh_answer(&answer, NULL); 136 139 SOCKET_SET_SOCKET_ID(answer, sock_id); 137 140 138 141 SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE); 139 142 SOCKET_SET_HEADER_SIZE(answer, sizeof(udp_header_t)); 140 async_answer_3(callid, EOK, IPC_GET_ARG1(answer), 141 IPC_GET_ARG2(answer), IPC_GET_ARG3(answer)); 143 answer_call(callid, EOK, &answer, 3); 142 144 } 143 145 … … 367 369 } 368 370 } 369 370 IPC_SET_ARG1(answer, 0);371 372 refresh_answer(&answer, NULL); 371 373 SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE); 372 async_answer_2(callid, EOK, IPC_GET_ARG1(answer), 373 IPC_GET_ARG2(answer)); 374 answer_call(callid, EOK, &answer, 2); 374 375 fibril_mutex_unlock(&socket->lock); 375 376 376 out: 377 377 if (addr != NULL) … … 486 486 487 487 log_msg(LVL_DEBUG, "read_data_length <- %zu", length); 488 IPC_SET_ARG2(answer, 0);489 488 SOCKET_SET_READ_DATA_LENGTH(answer, length); 490 489 SOCKET_SET_ADDRESS_LENGTH(answer, sizeof(addr)); 491 async_answer_3(callid, EOK, IPC_GET_ARG1(answer), 492 IPC_GET_ARG2(answer), IPC_GET_ARG3(answer)); 493 490 answer_call(callid, EOK, &answer, 3); 491 494 492 /* Push one fragment notification to client's queue */ 495 493 udp_sock_notify_data(sock_core);
Note:
See TracChangeset
for help on using the changeset viewer.