Changes in uspace/srv/net/tl/udp/udp.c [79ae36dd:348c589] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/udp/udp.c
r79ae36dd r348c589 37 37 38 38 #include <async.h> 39 #include <async_obsolete.h>40 39 #include <fibril_synch.h> 41 40 #include <malloc.h> … … 70 69 #include "udp.h" 71 70 #include "udp_header.h" 72 73 // FIXME: remove this header74 #include <kernel/ipc/ipc_methods.h>75 71 76 72 /** UDP module name. */ … … 303 299 /* Notify the destination socket */ 304 300 fibril_rwlock_write_unlock(&udp_globals.lock); 305 async_ obsolete_msg_5(socket->phone, NET_SOCKET_RECEIVED,301 async_msg_5(socket->phone, NET_SOCKET_RECEIVED, 306 302 (sysarg_t) socket->socket_id, packet_dimension->content, 0, 0, 307 303 (sysarg_t) fragments); … … 752 748 { 753 749 int res; 750 bool keep_on_going = true; 754 751 socket_cores_t local_sockets; 755 752 int app_phone = IPC_GET_PHONE(call); … … 776 773 socket_cores_initialize(&local_sockets); 777 774 778 while ( true) {775 while (keep_on_going) { 779 776 780 777 /* Answer the call */ … … 786 783 /* Get the next call */ 787 784 callid = async_get_call(&call); 788 789 if (!IPC_GET_IMETHOD(call)) { 785 786 /* Process the call */ 787 switch (IPC_GET_IMETHOD(call)) { 788 case IPC_M_PHONE_HUNGUP: 789 keep_on_going = false; 790 790 res = EHANGUP; 791 791 break; 792 } 793 794 /* Process the call */ 795 switch (IPC_GET_IMETHOD(call)) { 792 796 793 case NET_SOCKET: 797 794 socket_id = SOCKET_GET_SOCKET_ID(call); … … 883 880 884 881 /* Release the application phone */ 885 async_ obsolete_hangup(app_phone);882 async_hangup(app_phone); 886 883 887 884 /* Release all local sockets */
Note:
See TracChangeset
for help on using the changeset viewer.