version 1.5, 2000/01/11 06:43:36 |
version 1.6, 2000/01/26 02:05:34 |
|
|
/* $OpenXM: OpenXM_contrib2/asir2000/io/tcpf.c,v 1.4 1999/12/24 06:57:22 noro Exp $ */ |
/* $OpenXM: OpenXM_contrib2/asir2000/io/tcpf.c,v 1.5 2000/01/11 06:43:36 noro Exp $ */ |
#if INET |
#if INET |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
Line 114 struct ftab tcp_tab[] = { |
|
Line 114 struct ftab tcp_tab[] = { |
|
|
|
extern struct IOFP iofp[]; |
extern struct IOFP iofp[]; |
extern MATHCAP my_mathcap; |
extern MATHCAP my_mathcap; |
|
extern int ox_exchange_mathcap; |
|
|
char *getenv(); |
char *getenv(); |
|
|
|
|
/* 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); |
|
|
/* request remote mathcap */ |
if ( ox_exchange_mathcap ) { |
ox_send_cmd(sn,SM_mathcap); |
/* request remote mathcap */ |
ox_send_cmd(sn,SM_popCMO); |
ox_send_cmd(sn,SM_mathcap); |
ox_flush_stream_force(sn); |
ox_send_cmd(sn,SM_popCMO); |
ox_recv(sn,&id,&server_mathcap); |
ox_flush_stream_force(sn); |
store_remote_mathcap(sn,server_mathcap); |
ox_recv(sn,&id,&server_mathcap); |
|
store_remote_mathcap(sn,server_mathcap); |
/* send my mathcap */ |
|
create_my_mathcap("asir"); |
/* send my mathcap */ |
ox_send_data(sn,my_mathcap); |
create_my_mathcap("asir"); |
ox_send_cmd(sn,SM_setMathcap); |
ox_send_data(sn,my_mathcap); |
|
ox_send_cmd(sn,SM_setMathcap); |
|
} |
/* return the server id */ |
/* return the server id */ |
STOQ(ind,*rp); |
STOQ(ind,*rp); |
} |
} |
|
|
/* 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); |
|
|
/* request remote mathcap */ |
if ( ox_exchange_mathcap ) { |
ox_send_cmd(sn,SM_mathcap); |
/* request remote mathcap */ |
ox_send_cmd(sn,SM_popCMO); |
ox_send_cmd(sn,SM_mathcap); |
ox_flush_stream_force(sn); |
ox_send_cmd(sn,SM_popCMO); |
ox_recv(sn,&id,&server_mathcap); |
ox_flush_stream_force(sn); |
store_remote_mathcap(sn,server_mathcap); |
ox_recv(sn,&id,&server_mathcap); |
|
store_remote_mathcap(sn,server_mathcap); |
/* send my mathcap */ |
|
create_my_mathcap("asir"); |
/* send my mathcap */ |
ox_send_data(sn,my_mathcap); |
create_my_mathcap("asir"); |
ox_send_cmd(sn,SM_setMathcap); |
ox_send_data(sn,my_mathcap); |
|
ox_send_cmd(sn,SM_setMathcap); |
|
} |
/* return the server id */ |
/* return the server id */ |
STOQ(ind,*rp); |
STOQ(ind,*rp); |
} |
} |