Changeset 60ab6c3 in mainline for uspace/srv/net/module.c
- Timestamp:
- 2010-03-10T05:46:54Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5782081
- Parents:
- 71b00dcc (diff), b48ebd19 (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/module.c
r71b00dcc r60ab6c3 104 104 ipc_answer_0(iid, EOK); 105 105 106 // process additional messages 106 107 while(true){ 108 109 // clear the answer structure 107 110 refresh_answer(&answer, &answer_count); 108 111 112 // fetch the next message 109 113 callid = async_get_call(&call); 114 115 // process the message 110 116 res = module_message(callid, &call, &answer, &answer_count); 111 117 118 // end if said to either by the message or the processing result 112 119 if((IPC_GET_METHOD(call) == IPC_M_PHONE_HUNGUP) || (res == EHANGUP)){ 113 120 return; 114 121 } 115 122 123 // answer the message 116 124 answer_call(callid, res, &answer, answer_count); 117 125 } … … 121 129 ERROR_DECLARE; 122 130 131 // print the module label 123 132 printf("Task %d - ", task_get_id()); 124 133 module_print_name(); 125 134 printf("\n"); 135 136 // start the module 126 137 if(ERROR_OCCURRED(module_start(client_connection))){ 127 138 printf(" - ERROR %i\n", ERROR_CODE); 128 139 return ERROR_CODE; 129 140 } 141 130 142 return EOK; 131 143 }
Note:
See TracChangeset
for help on using the changeset viewer.