Back to index

lightning-sunbird  0.9+nobinonly
GUSIMTNetDB.h
Go to the documentation of this file.
00001 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
00002 // % Project  :      GUSI                        -      Grand Unified Socket Interface                    
00003 // % File            :      GUSINetDB.nw         -      Convert between names and adresses            
00004 // % Author   :      Matthias Neeracher                                           
00005 // % Language :      C++                                                        
00006 // %                                                                       
00007 // % $Log: GUSIMTNetDB.h,v $
00008 // % Revision 1.1  2001/03/11 22:36:01  sgehani%netscape.com
00009 // % First Checked In.
00010 // %                                              
00011 // % Revision 1.7  2000/06/12 04:20:59  neeri                              
00012 // % Introduce GUSI_*printf                                                
00013 // %                                                                       
00014 // % Revision 1.6  2000/03/06 06:10:02  neeri                              
00015 // % Reorganize Yield()                                                    
00016 // %                                                                       
00017 // % Revision 1.5  1999/08/26 05:45:04  neeri                              
00018 // % Fixes for literate edition of source code                             
00019 // %                                                                       
00020 // % Revision 1.4  1999/05/30 03:09:30  neeri                              
00021 // % Added support for MPW compilers                                       
00022 // %                                                                       
00023 // % Revision 1.3  1999/03/17 09:05:08  neeri                              
00024 // % Added GUSITimer, expanded docs                                        
00025 // %                                                                       
00026 // % Revision 1.2  1998/10/25 11:57:36  neeri                              
00027 // % Ready to release 2.0a3                                                
00028 // %                                                                       
00029 // % Revision 1.1  1998/10/11 16:45:17  neeri                              
00030 // % Ready to release 2.0a2                                                
00031 // %                                                                       
00032 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
00033 //                                                                         
00034 // \chapter{IP Name Lookup in MacTCP}                                      
00035 //                                                                         
00036 //                                                                         
00037 // <GUSIMTNetDB.h>=                                                        
00038 #ifndef _GUSIMTNetDB_
00039 #define _GUSIMTNetDB_
00040 
00041 #ifdef GUSI_INTERNAL
00042 #include "GUSINetDB.h"
00043 
00044 // \section{Definition of [[GUSIMTNetDB]]}                                 
00045 //                                                                         
00046 //                                                                         
00047 // <Definition of class [[GUSIMTNetDB]]>=                                  
00048 class GUSIMTNetDB : public GUSINetDB {
00049 public:
00050        static void   Instantiate();
00051        static bool Resolver();
00052        
00053        // <Overridden member functions for [[GUSIMTNetDB]]>=                      
00054  virtual hostent * gethostbyname(const char * name);
00055  // <Overridden member functions for [[GUSIMTNetDB]]>=                      
00056  virtual hostent * gethostbyaddr(const void * addr, size_t len, int type);
00057  // <Overridden member functions for [[GUSIMTNetDB]]>=                      
00058  virtual char * inet_ntoa(in_addr inaddr);
00059  // <Overridden member functions for [[GUSIMTNetDB]]>=                      
00060  virtual long gethostid();
00061 private:
00062        GUSIMTNetDB()                                                         {}
00063        GUSISpecificData<GUSIhostent,GUSIKillHostEnt>    fHost;
00064        static OSErr  sResolverState;
00065 };
00066 
00067 #endif /* GUSI_INTERNAL */
00068 
00069 #endif /* _GUSIMTNetDB_ */