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. | |
static bool | Close (SocketType socket) |
Close / destroy a socket. | |
static void | SetBlocking (SocketType socket, bool block) |
Set a socket as blocking or non-blocking. | |
static Socket::Status | GetErrorStatus () |
Get the last socket error status. |
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.
bool sf::SocketHelper::Close | ( | SocketHelper::SocketType | socket | ) | [static] |
Close / destroy a socket.
socket | : Socket to close |
Definition at line 45 of file SocketHelper.cpp.
Socket::Status sf::SocketHelper::GetErrorStatus | ( | ) | [static] |
Get the last socket error status.
Definition at line 64 of file SocketHelper.cpp.
SocketHelper::SocketType sf::SocketHelper::InvalidSocket | ( | ) | [static] |
Return the value of the invalid socket.
Definition at line 36 of file SocketHelper.cpp.
void sf::SocketHelper::SetBlocking | ( | SocketHelper::SocketType | socket, | |
bool | block | |||
) | [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.