Changes in uspace/srv/net/tl/tcp/tcp.c [9934f7d:0743493a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/tcp/tcp.c
r9934f7d r0743493a 38 38 #include <assert.h> 39 39 #include <async.h> 40 #include <async_obsolete.h>41 40 #include <fibril_synch.h> 42 41 #include <malloc.h> … … 73 72 #include "tcp.h" 74 73 #include "tcp_header.h" 75 76 // FIXME: remove this header77 #include <kernel/ipc/ipc_methods.h>78 74 79 75 /** TCP module name. */ … … 803 799 804 800 /* Notify the destination socket */ 805 async_ obsolete_msg_5(socket->phone, NET_SOCKET_RECEIVED,801 async_msg_5(socket->phone, NET_SOCKET_RECEIVED, 806 802 (sysarg_t) socket->socket_id, 807 803 ((packet_dimension->content < socket_data->data_fragment_size) ? … … 824 820 825 821 /* Notify the destination socket */ 826 async_ obsolete_msg_5(socket->phone, NET_SOCKET_RECEIVED,822 async_msg_5(socket->phone, NET_SOCKET_RECEIVED, 827 823 (sysarg_t) socket->socket_id, 828 824 0, 0, 0, … … 1082 1078 if (rc == EOK) { 1083 1079 /* Notify the destination socket */ 1084 async_ obsolete_msg_5(socket->phone, NET_SOCKET_ACCEPTED,1080 async_msg_5(socket->phone, NET_SOCKET_ACCEPTED, 1085 1081 (sysarg_t) listening_socket->socket_id, 1086 1082 socket_data->data_fragment_size, TCP_HEADER_SIZE, … … 1273 1269 { 1274 1270 int res; 1271 bool keep_on_going = true; 1275 1272 socket_cores_t local_sockets; 1276 1273 int app_phone = IPC_GET_PHONE(call); … … 1296 1293 fibril_rwlock_initialize(&lock); 1297 1294 1298 while ( true) {1295 while (keep_on_going) { 1299 1296 1300 1297 /* Answer the call */ … … 1304 1301 /* Get the next call */ 1305 1302 callid = async_get_call(&call); 1306 1307 if (!IPC_GET_IMETHOD(call)) { 1303 1304 /* Process the call */ 1305 switch (IPC_GET_IMETHOD(call)) { 1306 case IPC_M_PHONE_HUNGUP: 1307 keep_on_going = false; 1308 1308 res = EHANGUP; 1309 1309 break; 1310 } 1311 1312 /* Process the call */ 1313 switch (IPC_GET_IMETHOD(call)) { 1310 1314 1311 case NET_SOCKET: 1315 1312 socket_data = … … 1509 1506 1510 1507 /* Release the application phone */ 1511 async_ obsolete_hangup(app_phone);1508 async_hangup(app_phone); 1512 1509 1513 1510 printf("release\n"); … … 2442 2439 * @param[in] iid Message identifier. 2443 2440 * @param[in,out] icall Message parameters. 2444 * @param[in] arg Local argument.2441 * 2445 2442 */ 2446 static void tcp_receiver(ipc_callid_t iid, ipc_call_t *icall , void *arg)2443 static void tcp_receiver(ipc_callid_t iid, ipc_call_t *icall) 2447 2444 { 2448 2445 packet_t *packet;
Note:
See TracChangeset
for help on using the changeset viewer.