version 1.122, 2021/03/13 12:50:50
|
version 1.123, 2021/12/09 22:44:59
|
Line 3102 instruction_wfdata(struct_processus *s_e
|
Line 3102 instruction_wfdata(struct_processus *s_e
|
static inline logical1 |
static inline logical1 |
options_sockets(struct_processus *s_etat_processus, struct_socket *s_socket) |
options_sockets(struct_processus *s_etat_processus, struct_socket *s_socket) |
{ |
{ |
int drapeau; |
|
|
|
if (((*s_socket).options & (1 << d_BROADCAST)) != 0) |
if (((*s_socket).options & (1 << d_BROADCAST)) != 0) |
{ |
{ |
if (setsockopt((*s_socket).socket, SOL_SOCKET, SO_BROADCAST, &drapeau, |
if (setsockopt((*s_socket).socket, SOL_SOCKET, SO_BROADCAST, NULL, 0) |
sizeof(drapeau)) != 0) |
!= 0) |
{ |
{ |
return(d_erreur); |
return(d_erreur); |
} |
} |
Line 3115 options_sockets(struct_processus *s_etat
|
Line 3113 options_sockets(struct_processus *s_etat
|
|
|
if (((*s_socket).options & (1 << d_DONT_ROUTE)) != 0) |
if (((*s_socket).options & (1 << d_DONT_ROUTE)) != 0) |
{ |
{ |
if (setsockopt((*s_socket).socket, SOL_SOCKET, SO_DONTROUTE, &drapeau, |
if (setsockopt((*s_socket).socket, SOL_SOCKET, SO_DONTROUTE, NULL, 0) |
sizeof(drapeau)) != 0) |
!= 0) |
{ |
{ |
return(d_erreur); |
return(d_erreur); |
} |
} |
Line 3124 options_sockets(struct_processus *s_etat
|
Line 3122 options_sockets(struct_processus *s_etat
|
|
|
if (((*s_socket).options & (1 << d_KEEP_ALIVE)) != 0) |
if (((*s_socket).options & (1 << d_KEEP_ALIVE)) != 0) |
{ |
{ |
if (setsockopt((*s_socket).socket, SOL_SOCKET, SO_KEEPALIVE, &drapeau, |
if (setsockopt((*s_socket).socket, SOL_SOCKET, SO_KEEPALIVE, NULL, 0) |
sizeof(drapeau)) != 0) |
!= 0) |
{ |
{ |
return(d_erreur); |
return(d_erreur); |
} |
} |