home *** CD-ROM | disk | FTP | other *** search
- /*
- * Copyright (c) 1989 Oki Electric Industry Co., Ltd.
- *
- * This file is part of vtalk.
- *
- * Permission to use, copy, modify and distribute this program without
- * fee is grtanted, provided that the above copyright notice appear
- * in all copies.
- *
- */
- /*
- * vtalk.c main routione for vtalk
- *
- * vtalk is a command for
- * Voice TALK with the user on another machine.
- *
- */
-
- #include "vtalk.h"
-
- main(argc, argv)
- int argc;
- char *argv[];
- {
- int caller; /* caller ? receiver flag */
- int audio_fd;
- int status;
-
- void check_args(), open_dsocket(), open_socket();
- void call(), response(), vtalk();
-
- check_args(argc, argv, &caller);
- open_dsocket();
- if((status= call_vtalkd(caller)) != SUCCESS){
- /* not exit or not response or not waiting */
- output_err(status);
- exit(1);
- }
- if(caller)
- call();
- else response();
- audio_fd = device_open();
- set_volume();
-
- vtalk(audio_fd, caller);
- }
-
-
-