RAII class wrapping networking system startup. More...
#include <osvr/Common/NetworkingSupport.h>
Public Member Functions | |
| NetworkingSupport () | |
| Constructor. | |
| ~NetworkingSupport () | |
| Destructor. | |
| bool | isUp () const |
| Get whether the networking system is successfully "up". | |
| bool | wasSuccessful () const |
| Get whether the last operation (automatic startup or manual, early shutdown) was successful. | |
| std::string const & | getError () const |
| Get error message, if any. | |
| void | shutdown () |
| Shutdown before destruction. | |
RAII class wrapping networking system startup.
Basically, a clean way of calling WSAStartup() and WSACleanup() at the right time.
Definition at line 43 of file NetworkingSupport.h.