![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
The classes related to socket handling. More...
Classes | |
struct | gf::Packet |
A packet of bytes. More... | |
class | gf::Socket |
A network socket. More... | |
class | gf::SocketAddress |
A socket address. More... | |
class | gf::SocketGuard |
A guard to handle library initialization. More... | |
class | gf::SocketSelector |
A socket selector. More... | |
struct | gf::SocketDataResult |
The result of a socket operation. More... | |
class | gf::TcpListener |
A TCP listener. More... | |
class | gf::TcpSocket |
A TCP socket. More... | |
class | gf::UdpSocket |
A UDP socket. More... | |
Typedefs | |
using | gf::SocketHandle = implementation-defined |
A native socket handle. More... | |
Enumerations | |
enum class | gf::SocketFamily : int { gf::SocketFamily::Unspec = AF_UNSPEC , gf::SocketFamily::IPv4 = AF_INET , gf::SocketFamily::IPv6 = AF_INET6 } |
A socket family. More... | |
enum class | gf::SocketAddressFormat { gf::SocketAddressFormat::Unrestricted , gf::SocketAddressFormat::Numeric } |
A socket address format. More... | |
enum class | gf::SocketStatus { gf::SocketStatus::Data , gf::SocketStatus::Block , gf::SocketStatus::Close , gf::SocketStatus::Error } |
The status of a socket operation. More... | |
enum class | gf::SocketSelectorStatus { gf::SocketSelectorStatus::Event , gf::SocketSelectorStatus::Timeout , gf::SocketSelectorStatus::Error } |
The status of the selector. More... | |
Variables | |
constexpr SocketHandle | gf::InvalidSocketHandle = implemetation-defined |
An invalid socket handle. More... | |
The classes related to socket handling.
using gf::SocketHandle = typedef implementation-defined |
A native socket handle.
This type represents the native socket type. It is implementation-defined. Normally, you should not have to manipulate this type.
|
strong |
A socket address format.
Enumerator | |
---|---|
Unrestricted | Allow name resolution for the address. |
Numeric | Use a numeric form for the address. |
|
strong |
A socket family.
A socket family indicates the type of the socket. The family can be specified explicitly or unspecified, in which case the family is set automatically by the system.
Enumerator | |
---|---|
Unspec | Unspecified (either IPv4 or IPv6) |
IPv4 | IPv4 (Internet Protocol version 4) |
IPv6 | IPv6 (Internet Protocol version 6) |
|
strong |
|
strong |
The status of a socket operation.
Enumerator | |
---|---|
Data | Some data has been sent or received. |
Block | The socket would have blocked. |
Close | The connection is closed. |
Error | An error occurred. |
|
constexpr |
An invalid socket handle.
This constant is used internally to represent an invalid socket. It is implementation-defined. Normally, you should not have to manipulate this constant.