Changeset a64c64d in mainline for uspace/srv/net/module.c
- Timestamp:
- 2010-03-09T22:24:31Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 74520daf
- Parents:
- 9f2ea28
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/module.c
r9f2ea28 ra64c64d 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.