This class defines helper functions to do all the non-portable socket stuff. More...
#include <SocketHelper.hpp>
Public Types | |
typedef SOCKET | SocketType |
typedef int | LengthType |
Static Public Member Functions | |
static SocketType | InvalidSocket () |
Return the value of the invalid socket. More... | |
static bool | Close (SocketType Socket) |
Close / destroy a socket. More... | |
static void | SetBlocking (SocketType Socket, bool Block) |
Set a socket as blocking or non-blocking. More... | |
static Socket::Status | GetErrorStatus () |
Get the last socket error status. More... | |
This class defines helper functions to do all the non-portable socket stuff.
This class is meant for internal use only
Definition at line 41 of file Win32/SocketHelper.hpp.
|
static |
Close / destroy a socket.
Socket | : Socket to close |
Definition at line 45 of file SocketHelper.cpp.
|
static |
Get the last socket error status.
Definition at line 64 of file SocketHelper.cpp.
|
static |
Return the value of the invalid socket.
Definition at line 36 of file SocketHelper.cpp.
|
static |
Set a socket as blocking or non-blocking.
Socket | : Socket to modify |
Block | : New blocking state of the socket |
Definition at line 54 of file SocketHelper.cpp.