![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
A network socket. More...
#include <gf/Socket.h>

Public Member Functions | |
| ~Socket () | |
| Destructor. More... | |
| Socket (const Socket &)=delete | |
| Deleted copy constructor. More... | |
| Socket & | operator= (const Socket &)=delete |
| Deleted copy assignment. More... | |
| Socket (Socket &&other) noexcept | |
| Move constructor. More... | |
| Socket & | operator= (Socket &&other) noexcept |
| Move assignment. More... | |
| operator bool () const noexcept | |
| Boolean conversion. More... | |
| SocketAddress | getLocalAddress () const |
| Get the local address of the socket. More... | |
| void | setBlocking () |
| Set the socket in blocking mode. More... | |
| void | setNonBlocking () |
| Set the socket in non-blocking mode. More... | |
A network socket.
| gf::Socket::~Socket | ( | ) |
Destructor.
The socket is closed.
|
delete |
Deleted copy constructor.
|
noexcept |
Move constructor.
| other | The socket from which to move the socket handle |
| SocketAddress gf::Socket::getLocalAddress | ( | ) | const |
Get the local address of the socket.
|
inlinenoexcept |
Boolean conversion.
Move assignment.
| other | The socket from which to move the socket handle |
| void gf::Socket::setBlocking | ( | ) |
Set the socket in blocking mode.
| void gf::Socket::setNonBlocking | ( | ) |
Set the socket in non-blocking mode.