Changeset b1bd89ea in mainline for uspace/srv/net/tcp/sock.c
- Timestamp:
- 2012-04-24T16:15:41Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 76983ff, bc03679
- Parents:
- 32fef47
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/sock.c
r32fef47 rb1bd89ea 42 42 #include <ipc/services.h> 43 43 #include <ipc/socket.h> 44 #include <net/modules.h>45 44 #include <net/socket.h> 46 45 #include <ns.h> … … 144 143 sock->sock_core = sock_core; 145 144 146 refresh_answer(&answer, NULL);147 145 SOCKET_SET_SOCKET_ID(answer, sock_id); 148 146 149 147 SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE); 150 148 SOCKET_SET_HEADER_SIZE(answer, sizeof(tcp_header_t)); 151 answer_call(callid, EOK, &answer, 3); 149 150 async_answer_3(callid, EOK, IPC_GET_ARG1(answer), 151 IPC_GET_ARG2(answer), IPC_GET_ARG3(answer)); 152 152 } 153 153 … … 468 468 assert(asock_core != NULL); 469 469 470 refresh_answer(&answer, NULL);471 472 470 SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE); 473 471 SOCKET_SET_SOCKET_ID(answer, asock_id); 474 472 SOCKET_SET_ADDRESS_LENGTH(answer, sizeof(struct sockaddr_in)); 475 476 answer_call(callid, asock_core->socket_id, &answer, 3); 477 473 474 async_answer_3(callid, asock_core->socket_id, 475 IPC_GET_ARG1(answer), IPC_GET_ARG2(answer), 476 IPC_GET_ARG3(answer)); 477 478 478 /* Push one fragment notification to client's queue */ 479 479 log_msg(LVL_DEBUG, "tcp_sock_accept(): notify data\n"); … … 559 559 } 560 560 561 refresh_answer(&answer, NULL);561 IPC_SET_ARG1(answer, 0); 562 562 SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE); 563 answer_call(callid, EOK, &answer, 2); 563 async_answer_2(callid, EOK, IPC_GET_ARG1(answer), 564 IPC_GET_ARG2(answer)); 564 565 fibril_mutex_unlock(&socket->lock); 565 566 } … … 679 680 680 681 SOCKET_SET_READ_DATA_LENGTH(answer, length); 681 a nswer_call(callid, EOK, &answer, 1);682 682 async_answer_1(callid, EOK, IPC_GET_ARG1(answer)); 683 683 684 /* Push one fragment notification to client's queue */ 684 685 tcp_sock_notify_data(sock_core);
Note:
See TracChangeset
for help on using the changeset viewer.