/* Copyright (c) 1996, Ruslan R. Laishev (@RRL) */ #include "nntp.h" #include "nntp_worker.h" #include "nntp_rms.h" #include "nntp_lib.h" #include "nntp_log.h" /* *-------------------------------------------------------------------------------- */ void main (void) { pthread_t th; long status; nntp_log(logi,(stdout,"Copyright (c) 1996,Ruslan R. Laishev.")); nntp_log(logi,(stdout,"DECThreads NNTP Server for OpenVMS Ver. 0.00-Start.")); nntp_log(logi,(stdout,"Opening News Messages DataBase")); MsgDBopen(); nntp_log(logw,(stdout,"Opening News Messages DataBase - Ok")); nntp_log(logi,(stdout,"Opening NewsGroups DataBase")); GrpDBopen(); nntp_log(logw,(stdout,"Opening NewsGroups DataBase - Ok")); status = pthread_create(&th,pthread_attr_default, NNTP_InBoss, (pthread_addr_t) 0); if (status == -1) { nntp_log_err (errno); nntp_log(logi,(stdout,"Create Boss thread-Error (Tid:%d).",th)); } nntp_log(logi,(stdout,"Create Boss thread-Ok (Tid:%d).",th)); sleep(99999); MsgDBclose(); nntp_log(logi,(stdout,"DECThreads NNTP Server for OpenVMS Ver. 0.00-End.")); }