minmod
This commit is contained in:
parent
d6ddbce375
commit
070d0dd19d
|
@ -45,6 +45,7 @@ void* managePlane(void* THREADABLE_ARGS){
|
|||
|
||||
/* 2. On récupère les arguments */
|
||||
struct handler_arg* arg = THREADABLE_ARGS;
|
||||
if( DEBUGMOD&HDR ) printf("===== managePlane(%p, %p, %d, %p) =====\n", (void*) arg->managers, (void*) arg->activeManagers, arg->socket, (void*) arg->sgca);
|
||||
|
||||
/* 3. On récupère le rang du thread parmi les "managers" */
|
||||
index = -1;
|
||||
|
|
|
@ -157,7 +157,7 @@ int multicastTerminal(struct middleware_arg* arg){
|
|||
}else{
|
||||
strcpy(request.addr, SERV_HOST);
|
||||
request.port = comInfo.sin_port;
|
||||
if( DEBUGMOD&SCK ) printf("{%s}{udp_com} socket opened on %s:%d\n", arg->entity, request.addr, request.port);
|
||||
if( DEBUGMOD&SCK ) printf("{%s}{udp_com} socket opened on %s:%d\n", arg->entity, request.addr, htons(request.port));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ int multicastTerminal(struct middleware_arg* arg){
|
|||
return -2;
|
||||
}
|
||||
|
||||
printf("{%s} sent: bind_header{flag = %d; addr = '%s'; port = %d}\n", arg->entity, (int) request.flags, request.addr, request.port);
|
||||
printf("{%s} sent: bind_header{flag = %d; addr = '%s'; port = %d}\n", arg->entity, (int) request.flags, request.addr, htons(request.port));
|
||||
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue