Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef Winsock_hxx
- #define Winsock_hxx
- #include <winsock2.h>
- /**
- *
- */
- class Winsock
- {
- public:
- /**
- *
- */
- Winsock() {
- WSAStartup( MAKEWORD(2, 2), &wsa_data_ );
- }
- /**
- *
- */
- ~Winsock() {
- WSACleanup();
- }
- private:
- WSADATA wsa_data_;
- };
- static Winsock winsock;
- #endif /* Winsock_hxx */
Add Comment
Please, Sign In to add comment