|
|
@ -166,7 +166,7 @@ ipc_transport_initialize_server ( |
|
|
/* with version 1 (mailboxes) functions of the same names. */ |
|
|
/* with version 1 (mailboxes) functions of the same names. */ |
|
|
{ |
|
|
{ |
|
|
struct sockaddr_in server; /* Server specifications for socket*/ |
|
|
struct sockaddr_in server; /* Server specifications for socket*/ |
|
|
unsigned int server_length; /* Size of server structure */ |
|
|
|
|
|
|
|
|
int server_length; /* Size of server structure */ |
|
|
int port_num; /* Port number converted from server_name */ |
|
|
int port_num; /* Port number converted from server_name */ |
|
|
|
|
|
|
|
|
NG_IGNORE(mode); |
|
|
NG_IGNORE(mode); |
|
|
@ -513,7 +513,7 @@ ipc_transport_get_line ( |
|
|
if (sock_state == IPC_SOCK_INITIALIZED) { |
|
|
if (sock_state == IPC_SOCK_INITIALIZED) { |
|
|
/* We have an open socket but have not connected to a client. */ |
|
|
/* We have an open socket but have not connected to a client. */ |
|
|
/* Accept a connection from a client. */ |
|
|
/* Accept a connection from a client. */ |
|
|
msg_stream = accept (sock_desc, (struct sockaddr *)0, (unsigned int *)0); |
|
|
|
|
|
|
|
|
msg_stream = accept (sock_desc, (struct sockaddr *)0, (socklen_t*)0); |
|
|
|
|
|
|
|
|
if (msg_stream == -1) { |
|
|
if (msg_stream == -1) { |
|
|
fprintf (stderr, "ERROR: IPC: Server accepting request\n"); |
|
|
fprintf (stderr, "ERROR: IPC: Server accepting request\n"); |
|
|
|