Cafu Engine
NetSocketT Class Reference

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...
 

Detailed Description

A socket that closes itself at the end of its livetime (scope).

Constructor & Destructor Documentation

NetSocketT::NetSocketT ( SOCKET  Socket_)

Constructor.

Create a NetSockeT from a socket handle.

Parameters
Socket_Socket handle to create from.
NetSocketT::~NetSocketT ( )

Desctructor.

Releases the socket handle it was created with.

Member Function Documentation

NetSocketT::operator SOCKET ( ) const

Get the socket handle.


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