/branches/network/uspace/srv/net/modules.c |
---|
31,6 → 31,7 |
*/ |
/** @file |
* Generic module functions implementation. |
*/ |
#include <async.h> |
40,6 → 41,8 |
#include "err.h" |
#include "modules.h" |
/** The time between connect requests. |
*/ |
#define MODULE_WAIT_TIME 10000 |
int connect_to_service( services_t need ){ |
46,6 → 49,7 |
int phone; |
int res; |
//TODO timeout version? |
res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, ( ipcarg_t * ) & phone ); |
while(( res < 0 ) || ( phone < 0 )){ |
usleep( MODULE_WAIT_TIME ); |