Changeset 60ab6c3 in mainline for uspace/srv/net/module.c


Ignore:
Timestamp:
2010-03-10T05:46:54Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge from lp:~lukasmejdrech/helenos/network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/module.c

    r71b00dcc r60ab6c3  
    104104        ipc_answer_0(iid, EOK);
    105105
     106        // process additional messages
    106107        while(true){
     108
     109                // clear the answer structure
    107110                refresh_answer(&answer, &answer_count);
    108111
     112                // fetch the next message
    109113                callid = async_get_call(&call);
     114
     115                // process the message
    110116                res = module_message(callid, &call, &answer, &answer_count);
    111117
     118                // end if said to either by the message or the processing result
    112119                if((IPC_GET_METHOD(call) == IPC_M_PHONE_HUNGUP) || (res == EHANGUP)){
    113120                        return;
    114121                }
    115122
     123                // answer the message
    116124                answer_call(callid, res, &answer, answer_count);
    117125        }
     
    121129        ERROR_DECLARE;
    122130
     131        // print the module label
    123132        printf("Task %d - ", task_get_id());
    124133        module_print_name();
    125134        printf("\n");
     135
     136        // start the module
    126137        if(ERROR_OCCURRED(module_start(client_connection))){
    127138                printf(" - ERROR %i\n", ERROR_CODE);
    128139                return ERROR_CODE;
    129140        }
     141
    130142        return EOK;
    131143}
Note: See TracChangeset for help on using the changeset viewer.