A socket that closes itself at the end of its livetime (scope). More...
#include "Network.hpp"
Public Member Functions | |
NetSocketT (SOCKET Socket_) | |
Constructor. More... | |
~NetSocketT () | |
Desctructor. More... | |
operator SOCKET () const | |
Get the socket handle. More... | |
A socket that closes itself at the end of its livetime (scope).
NetSocketT::NetSocketT | ( | SOCKET | Socket_ | ) |
Constructor.
Create a NetSockeT from a socket handle.
Socket_ | Socket handle to create from. |
NetSocketT::~NetSocketT | ( | ) |
Desctructor.
Releases the socket handle it was created with.
NetSocketT::operator SOCKET | ( | ) | const |
Get the socket handle.