OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::common::NetworkingSupport Class Reference

RAII class wrapping networking system startup. More...

#include <osvr/Common/NetworkingSupport.h>

Inheritance diagram for osvr::common::NetworkingSupport:

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.
 

Detailed Description

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.


The documentation for this class was generated from the following files: