OSVR-Core
Public Member Functions | List of all members
osvr::common::NetworkingSupport Class Reference

RAII class wrapping networking system startup. More...

#include <NetworkingSupport.h>

Inheritance diagram for osvr::common::NetworkingSupport:

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.
 

Detailed Description

RAII class wrapping networking system startup.

Basically, a clean way of calling WSAStartup() and WSACleanup() at the right time.

Member Function Documentation

§ wasSuccessful()

bool osvr::common::NetworkingSupport::wasSuccessful ( ) const
inline

Get whether the last operation (automatic startup or manual, early shutdown) was successful.


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