|
OSVR-Core
|
RAII class wrapping networking system startup. More...
#include <NetworkingSupport.h>
Public Member Functions | |
| OSVR_COMMON_EXPORT | NetworkingSupport () |
| Constructor. | |
| OSVR_COMMON_EXPORT | ~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. More... | |
| 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.
|
inline |
Get whether the last operation (automatic startup or manual, early shutdown) was successful.
1.8.12