version 1.1.1.1, 1999/10/29 08:06:41 |
version 1.6, 1999/11/29 12:09:58 |
|
|
/* -*- mode: C; coding: euc-japan -*- */ |
/* -*- mode: C; coding: euc-japan -*- */ |
/* $OpenXM$ */ |
/* $OpenXM: OpenXM/src/ox_math/serv1.c,v 1.5 1999/11/18 22:07:50 ohara Exp $ */ |
/* $Id$ */ |
|
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
|
|
#include "ox.h" |
#include "ox.h" |
#include "serv2.h" |
#include "serv2.h" |
|
|
extern MLINK lp; |
static int send_ox_sync_ball(int fd); |
|
|
static int sv_read = 3; |
static int sv_read = 3; |
static int sv_write = 4; |
static int sv_write = 4; |
|
|
Line 104 int receive_ox(int fd_read, int fd_write) |
|
Line 104 int receive_ox(int fd_read, int fd_write) |
|
return 0; |
return 0; |
} |
} |
|
|
|
int shutdown() |
|
{ |
|
close(sv_read); |
|
close(sv_write); |
|
ml_exit(); |
|
exit(0); |
|
} |
|
|
int main() |
int main() |
{ |
{ |
MATH_init(); |
ml_init(); |
initialize_stack(); |
initialize_stack(); |
|
|
signal(SIGUSR1, handler_reset1); |
signal(SIGUSR1, handler_reset1); |
signal(SIGKILL, handler_kill); |
signal(SIGKILL, handler_kill); |
|
|
/* バイトオーダの決定 */ |
/* バイトオーダの決定 */ |
decideByteOrder2(sv_read, sv_write, 0); |
decideByteOrderServer(sv_read, 0); |
|
|
while(1) { |
while(1) { |
receive_ox(sv_read, sv_write); |
receive_ox(sv_read, sv_write); |
|
|
already_send_ox_sync_ball = 0; |
already_send_ox_sync_ball = 0; |
} |
} |
} |
} |
MATH_exit(); |
shutdown(); |
} |
} |