This class defines helper functions to do all the non-portable socket stuff.
More...
#include <SocketHelper.hpp>
|
typedef SOCKET | SocketType |
|
typedef int | LengthType |
|
|
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.
static bool sf::SocketHelper::Close |
( |
SocketType |
Socket | ) |
|
|
static |
Close / destroy a socket.
- Parameters
-
- Returns
- True on success
static Socket::Status sf::SocketHelper::GetErrorStatus |
( |
| ) |
|
|
static |
Get the last socket error status.
- Returns
- Status corresponding to the last socket error
static SocketType sf::SocketHelper::InvalidSocket |
( |
| ) |
|
|
static |
Return the value of the invalid socket.
- Returns
- Unique value of the invalid socket
static void sf::SocketHelper::SetBlocking |
( |
SocketType |
Socket, |
|
|
bool |
Block |
|
) |
| |
|
static |
Set a socket as blocking or non-blocking.
- Parameters
-
Socket | : Socket to modify |
Block | : New blocking state of the socket |
The documentation for this class was generated from the following file: