Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

socketinitializer.h

Go to the documentation of this file.
00001 #ifndef SOCKETINITIALIZER_H
00002 #define SOCKETINITIALIZER_H
00003 
00004 #ifdef WIN32
00005 #include <winsock.h>
00006 
00007 class SocketInitializer
00008 {
00009 public:
00010         ~SocketInitializer()
00011         {
00012                 WSACleanup();
00013         }
00014         SocketInitializer()
00015         {
00016                 WSAData wsa;
00017                 WSAStartup(MAKEWORD(2,2),&wsa);
00018         }
00019 
00020 private:
00021 };
00022 
00023 #endif //WIN32
00024 #endif //socketinitializer
00025 

Generated on Thu Jun 16 00:13:14 2005 for Netlib for Abuse! by  doxygen 1.4.3