Changeset 1a23f6e in mainline for uspace/srv/net/tcp/sock.c
- Timestamp:
- 2012-05-04T10:41:44Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af42a2b
- Parents:
- 6efb4d2 (diff), d21e935c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/sock.c
r6efb4d2 r1a23f6e 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> … … 89 88 socket = (tcp_sockdata_t *)sock_core->specific_data; 90 89 (void)socket; 90 91 /* XXX We need to initiate connection cleanup here */ 91 92 } 92 93 … … 142 143 sock->sock_core = sock_core; 143 144 144 refresh_answer(&answer, NULL);145 145 SOCKET_SET_SOCKET_ID(answer, sock_id); 146 146 147 147 SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE); 148 148 SOCKET_SET_HEADER_SIZE(answer, sizeof(tcp_header_t)); 149 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)); 150 152 } 151 153 … … 466 468 assert(asock_core != NULL); 467 469 468 refresh_answer(&answer, NULL);469 470 470 SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE); 471 471 SOCKET_SET_SOCKET_ID(answer, asock_id); 472 472 SOCKET_SET_ADDRESS_LENGTH(answer, sizeof(struct sockaddr_in)); 473 474 answer_call(callid, asock_core->socket_id, &answer, 3); 475 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 476 478 /* Push one fragment notification to client's queue */ 477 479 log_msg(LVL_DEBUG, "tcp_sock_accept(): notify data\n"); … … 557 559 } 558 560 559 refresh_answer(&answer, NULL);561 IPC_SET_ARG1(answer, 0); 560 562 SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE); 561 answer_call(callid, EOK, &answer, 2); 563 async_answer_2(callid, EOK, IPC_GET_ARG1(answer), 564 IPC_GET_ARG2(answer)); 562 565 fibril_mutex_unlock(&socket->lock); 563 566 } … … 677 680 678 681 SOCKET_SET_READ_DATA_LENGTH(answer, length); 679 a nswer_call(callid, EOK, &answer, 1);680 682 async_answer_1(callid, EOK, IPC_GET_ARG1(answer)); 683 681 684 /* Push one fragment notification to client's queue */ 682 685 tcp_sock_notify_data(sock_core); … … 835 838 } 836 839 } 840 841 /* Clean up */ 842 log_msg(LVL_DEBUG, "tcp_sock_connection: Clean up"); 843 async_hangup(client.sess); 844 socket_cores_release(NULL, &client.sockets, &gsock, tcp_free_sock_data); 837 845 } 838 846
Note:
See TracChangeset
for help on using the changeset viewer.