home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / DCLAP 4j / network / nsclilib / ni_net.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-17  |  4.3 KB  |  155 lines  |  [TEXT/R*ch]

  1. /*      
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE                          
  5. *               National Center for Biotechnology Information
  6. *                                                                          
  7. *  This software/database is a "United States Government Work" under the   
  8. *  terms of the United States Copyright Act.  It was written as part of    
  9. *  the author's official duties as a United States Government employee and 
  10. *  thus cannot be copyrighted.  This software/database is freely available 
  11. *  to the public for use. The National Library of Medicine and the U.S.    
  12. *  Government have not placed any restriction on its use or reproduction.  
  13. *                                                                          
  14. *  Although all reasonable efforts have been taken to ensure the accuracy  
  15. *  and reliability of the software and data, the NLM and the U.S.          
  16. *  Government do not and cannot warrant the performance or results that    
  17. *  may be obtained by using this software or data. The NLM and the U.S.    
  18. *  Government disclaim all warranties, express or implied, including       
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.                                                                
  21. *                                                                          
  22. *  Please cite the author in any work or product based on this material.   
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:    ni_net.h
  27. *
  28. * Author:       Beatty, Gish
  29. *
  30. * Version Creation Date:        1/1/92
  31. *
  32. * $Revision: 1.10 $
  33. *
  34. * File Description: 
  35. *
  36. *
  37. * Modifications:  
  38. * --------------------------------------------------------------------------
  39. * Date     Name        Description of modification
  40. * -------  ----------  -----------------------------------------------------
  41. * 5/12/92  Epstein     Converted tabs to spaces
  42. *
  43. *
  44. * ==========================================================================
  45. */
  46.  
  47. #ifndef _NI_NET_
  48.  
  49. #if !defined(COMP_MPW) && !defined(COMP_CODEWAR) && !defined(OS_VMS)
  50. #include <fcntl.h>
  51. #endif /* skip for COMP_MPW or OS_VMS */
  52.  
  53. #ifdef OS_MAC
  54. #include <netdb.h>
  55. #include <s_types.h>
  56. #include <s_socket.h>
  57. #include <s_ioctl.h>
  58. #include <neti_in.h>
  59. #include <a_inet.h>
  60. #include <s_time.h>
  61. #define _NI_NET_
  62. #endif /* OS_MAC */
  63.  
  64. #ifdef NETP_INET_WSOCK
  65. #undef NEAR
  66. #undef FAR
  67. #undef Beep
  68. #undef PASCAL
  69. #undef CDECL
  70. #undef TRUE
  71. #undef FALSE
  72. #define STRICT
  73. #include <windows.h>
  74. #include <winsock.h>
  75. #define _NI_NET_
  76. #endif /* NETP_INET_WSOCK */
  77.  
  78. #ifdef NETP_INET_NEWT
  79. #undef TRUE
  80. #undef FALSE
  81. #undef NULL
  82. #include <nmpcip.h>
  83. #define _NI_NET_
  84. #endif /* NETP_INET_NEWT */
  85.  
  86. #ifdef NETP_INET_PCNFS
  87. #include <netdb.h>
  88. #include <sys/socket.h>
  89. #include <sys/types.h>
  90. #include <sys/ioctl.h>
  91. #include <netinet/in.h>
  92. #include <windows.h>
  93. #include <in_addr.h>
  94. #include <sys/nfs_time.h>
  95. #include <tk_errno.h>
  96. #define _NI_NET_
  97. #endif /* NETP_INET_PCNFS */
  98.  
  99. /* TGV, Inc. Multinet TCP/IP suite */
  100. #ifdef NETP_INET_TGV
  101. #include "Multinet_root:[multinet.include]netdb.h"
  102. #include "Multinet_root:[multinet.include.sys]types.h"
  103. #include "Multinet_root:[multinet.include.sys]socket.h"
  104. #include "Multinet_root:[multinet.include.sys]ioctl.h"
  105. #include "Multinet_root:[multinet.include.netinet]in.h"
  106. #include "Multinet_root:[multinet.include.arpa]inet.h"
  107. #include "Multinet_root:[multinet.include.sys]time.h"
  108. #include "Multinet_root:[multinet.include]errno.h"
  109. #define _NI_NET_
  110. #endif /* NETP_INET_TGV */
  111.  
  112. /* The Wollongong Group, Inc. TCP/IP suite */
  113. #ifdef NETP_INET_TWG
  114. #include <netdb.h>
  115. #include <sys/types.h>
  116. #include <sys/socket.h>
  117. #include <sys/ioctl.h>
  118. #include <netinet/in.h>
  119. #include <arpa/inet.h>
  120. #include <sys/time.h>
  121. #include <sys/errno.h>
  122. #define _NI_NET_
  123. #endif /* NETP_INET_TWG */
  124.  
  125. /* DEC TCP/IP for OpenVMS */
  126. #ifdef NETP_INET_UCX
  127. #include <netdb.h>
  128. #include <types.h>
  129. #include <socket.h>
  130. #include <in.h>
  131. #include <inet.h>
  132. #include <time.h>
  133. #include <ucx$inetdef.h>
  134. #include <iodef.h>
  135. #define _NI_NET_
  136. #endif /* NETP_INET_UCX */
  137.  
  138.  
  139. /* default */
  140. #ifndef _NI_NET_
  141. #include <netdb.h>
  142. #include <sys/socket.h>
  143. #include <sys/types.h>
  144. #include <sys/ioctl.h>
  145. #include <netinet/in.h>
  146. #include <arpa/inet.h>
  147. #include <sys/time.h>
  148. #define _NI_NET_
  149. #endif /* _NI_NET_ */
  150.  
  151. #endif
  152.  
  153.  
  154.  
  155.