version 1.2, 1999/11/02 06:11:58 |
version 1.4, 1999/11/18 21:56:43 |
|
|
/* -*- mode: C; coding: euc-japan -*- */ |
/* -*- mode: C; coding: euc-japan -*- */ |
/* $OpenXM$ */ |
/* $OpenXM: OpenXM/src/ox_math/serv1.c,v 1.3 1999/11/03 10:56:40 ohara Exp $ */ |
/* $Id$ */ |
|
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
Line 106 int receive_ox(int fd_read, int fd_write) |
|
Line 105 int receive_ox(int fd_read, int fd_write) |
|
return 0; |
return 0; |
} |
} |
|
|
|
int shutdown() |
|
{ |
|
close(sv_read); |
|
MATH_exit(); |
|
exit(0); |
|
} |
|
|
int main() |
int main() |
{ |
{ |
MATH_init(); |
MATH_init(); |
|
|
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(); |
} |
} |