version 1.11, 2000/08/22 05:04:18 |
version 1.12, 2000/09/23 00:57:44 |
|
|
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* $OpenXM: OpenXM_contrib2/asir2000/io/tcpf.c,v 1.10 2000/08/21 08:31:39 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/io/tcpf.c,v 1.11 2000/08/22 05:04:18 noro Exp $ |
*/ |
*/ |
#if INET |
#if INET |
#include "ca.h" |
#include "ca.h" |
|
|
/* client mode */ |
/* client mode */ |
cn = get_iofp(cs,cport_str,0); |
cn = get_iofp(cs,cport_str,0); |
sn = get_iofp(ss,sport_str,0); |
sn = get_iofp(ss,sport_str,0); |
|
/* get_iofp returns -1 if the laucher could not spawn the server */ |
|
if ( sn < 0 ) { |
|
/* we should terminate the launcher */ |
|
ox_send_cmd(cn,SM_shutdown); ox_flush_stream_force(cn); |
|
STOQ(-1,*rp); |
|
return; |
|
} |
|
|
/* register server to the server list */ |
/* register server to the server list */ |
ind = register_server(use_unix,cn,sn); |
ind = register_server(use_unix,cn,sn); |
|
|
/* client mode */ |
/* client mode */ |
cn = get_iofp(cs,control_port_str,0); |
cn = get_iofp(cs,control_port_str,0); |
sn = get_iofp(ss,server_port_str,0); |
sn = get_iofp(ss,server_port_str,0); |
|
/* get_iofp returns -1 if the laucher could not spawn the server */ |
|
if ( sn < 0 ) { |
|
/* we should terminate the launcher */ |
|
ox_send_cmd(cn,SM_shutdown); ox_flush_stream_force(cn); |
|
STOQ(-1,*rp); |
|
return; |
|
} |
|
|
/* register server to the server list */ |
/* register server to the server list */ |
ind = register_server(use_unix,cn,sn); |
ind = register_server(use_unix,cn,sn); |