/************************************************************************* * * * COPYRIGHT NOTICE * * * * This software/database is "United States Government Work" under the * * terms of the United States Copyright Act. It was written as part of * * the author's official duties as a Government employee and thus cannot * * be copyrighted. This software/database is freely available to the * * public for use without a copyright notice. Restrictions cannot be * * placed on its present or future use. * * * * Although all reasonable efforts have been taken to insure the accuracy * * and reliability of the software and data, the National Library of * * Medicine (NLM) and the U.S. Government does not and cannot warrant the * * performance or results that may be obtained by using this software or * * data. The NLM and the U.S. Government disclaims all warranties as to * * performance, merchantability or fitness for any particular purpose. * * * * In any work or product derived from this material, proper attribution * * of the author as the source of the software or data would be * * appreciated. * * * *************************************************************************/ #ifndef VAR_ARGS #include #else #include #endif #ifndef HZ #define HZ 60 #endif char *servers[] = { "", /* empty (but not NULL!) entry for user-specified server name */ "cruncher.nlm.nih.gov", /* primary server */ "muncher.nlm.nih.gov", /* secondary, backup server */ "blaster.nlm.nih.gov", /* tertiary, backup server */ (char *)0 }; #ifndef BLASTPORT #define BLASTPORT 5555 #endif /* Define RELIABLE if connection on BLASTPORT is desired even when the blast service is not listed in /etc/services or YP/NIS services database. */ #define RELIABLE /* WAITCONNECT = no. of secs to wait for server to respond to connect() */ #ifndef WAITCONNECT #define WAITCONNECT 30 /* A better choice for remote users is 30 seconds */ #endif char *validprogs[] = { /* only these program names are allowed */ "blastp", "blastn", "blastx", "tblastn", "tblastx", "blast3", (char *)0 }; #define QUERYLEN_MAX 400000 /* Longest query sequence accepted */ #define QUERYLEN_MIN 4 /* Shortest query sequence accepted */ /* check in-coming client's address against access control list */ #define VALIDATEADDRESS #define BLASTLOG "blastd.log" #define CRLF "\r\n" #ifndef NULLB #define NULLB '\0' #endif #ifndef INADDR_NONE #define INADDR_NONE 0xffffffff #endif #define FD_STDIN 0 #define FD_STDOUT 1 #define FD_STDERR 2 #define READSOCKET read #define WRITESOCKET write #ifdef CNTRL #undef CNTRL #endif #define CNTRL(c) ((c)-'A'+1)