Claw
1.7.3
|
Common interface for platform specific methods needed for using sockets. More...
#include <socket_traits.hpp>
Common interface for platform specific methods needed for using sockets.
The claw::net::socket_traits implements platform specific methods for socket usage through a common interface. This interface must include :
handle
, representing the system handle to a library, handle open(std::string)
for opening a library. This method can throw an exception if a problem occurs, handle auto_open(std::string)
for opening the current program. the string will be the name (path) of the current program. This method can throw an exception if a problem occurs, void close(handle)
for closing a library, implementation_defined_pointer get_symbol(handle, std::string)
for getting a pointer to a symbol of the library, bool have_symbol(handle, std::string)
saying if a library has a specific symbol, bool valid_handle(handle)
which tell if an handle represent a valid handle.All these methods must be defined as static
.