![]() |
FastEngine 0.9.4
A multiplayer oriented 2D engine made with Vulkan.
|
Everything related to network. More...
Classes | |
| struct | fge::net::OneWayLatencyPlanner |
| A helper class that measure latency between client/server. More... | |
| class | fge::net::ClientStatus |
| class | fge::net::Client |
| Class that represent the identity of a client. More... | |
| struct | fge::SceneNetEvent |
| Structure that represent an network event related to Scene. More... | |
| class | fge::NetworkTypeTasks |
| Network type for the TaskHandler. More... | |
| struct | fge::net::ClientListEvent |
| Represents an event on the client list (client added, client removed, ...) More... | |
| class | fge::net::ClientList |
| A list of clients used by a server. More... | |
| struct | fge::net::Identity |
| A class to represent a client or server identity with an IP address and a port. More... | |
| struct | fge::net::IdentityHash |
| A class to hash an Identity (useful for std::unordered_map or other containers) More... | |
| class | fge::net::IpAddress |
| A class to represent an IP address. More... | |
| class | fge::net::NetworkTypeBase |
| Base class for a network type. More... | |
| class | fge::net::NetworkType< T > |
| The default network type for most trivial types. More... | |
| class | fge::net::NetworkTypeScene |
| The network type for a scene. More... | |
| class | fge::net::NetworkTypeTag |
| The network type for a tag. More... | |
| class | fge::net::NetworkTypeSmoothVec2Float |
| The network type for a vector2 float that wait for the error threshold in order to set the value (useful for smooth position sync) More... | |
| class | fge::net::NetworkTypeSmoothFloat |
| The network type for a float that wait for the error threshold in order to set the value. More... | |
| class | fge::net::NetworkTypeProperty< T > |
| The network type for a property. More... | |
| class | fge::net::NetworkTypePropertyList< T > |
| The network type for a property inside a list. More... | |
| class | fge::net::NetworkTypeManual< T > |
| The network type for a trivial type but triggered manually. More... | |
| class | fge::net::NetworkTypeVector< T > |
| The network type for a vector. More... | |
| class | fge::net::NetworkTypeEvents< TEnum, TData > |
| The network type for an event queue. More... | |
| class | fge::net::NetworkTypeHandler |
| A regroupment of network types. More... | |
| class | fge::net::ProtocolPacket |
| A special inheritance of Packet with a predefined communication protocol. More... | |
| class | fge::net::PacketReorderer |
| A packet reorderer. More... | |
| class | fge::net::NetFluxUdp |
| A network flux. More... | |
| class | fge::net::ServerSideNetUdp |
| A server side network manager. More... | |
| class | fge::net::ClientSideNetUdp |
| A client side network manager. More... | |
| class | fge::net::Socket |
| A base class wrapper for low-level network functions. More... | |
| class | fge::net::SocketUdp |
| A wrapper for UDP sockets inheriting from Socket. More... | |
| class | fge::net::SocketTcp |
| A wrapper for TCP sockets inheriting from Socket. More... | |
| class | fge::net::SocketListenerTcp |
| A wrapper for TCP listener sockets inheriting from Socket. More... | |
Typedefs | |
| using | fge::net::Timestamp = uint16_t |
| An timestamp represent modulated current time in milliseconds. | |
| using | fge::net::FullTimestamp = uint64_t |
| An timestamp represent current time in milliseconds. | |
| using | fge::net::FullTimestampOffset = int64_t |
| An timestamp offset. | |
| using | fge::net::Latency_ms = uint16_t |
| An latency represent the latency of the client->server / server->client connection. | |
Functions | |
| FGE_API uint16_t | fge::SwapHostNetEndian_16 (uint16_t n) |
| Swap the endianness of a 16-bit integer. | |
| FGE_API uint32_t | fge::SwapHostNetEndian_32 (uint32_t n) |
| Swap the endianness of a 32-bit integer. | |
| FGE_API uint64_t | fge::SwapHostNetEndian_64 (uint64_t n) |
| Swap the endianness of a 64-bit integer. | |
| FGE_API float | fge::SwapHostNetEndian_f (float n) |
| Swap the endianness of a float. | |
| FGE_API double | fge::SwapHostNetEndian_d (double n) |
| Swap the endianness of a double. | |
| FGE_API uint16_t | fge::SwapEndian_16 (uint16_t n) |
| Swap the endianness of a 16-bit integer. | |
| FGE_API uint32_t | fge::SwapEndian_32 (uint32_t n) |
| Swap the endianness of a 32-bit integer. | |
| FGE_API uint64_t | fge::SwapEndian_64 (uint64_t n) |
| Swap the endianness of a 64-bit integer. | |
| FGE_API float | fge::SwapEndian_f (float n) |
| Swap the endianness of a float. | |
| FGE_API double | fge::SwapEndian_d (double n) |
| Swap the endianness of a double. | |
| FGE_API bool | fge::IsBigEndian () |
| Check if the endianness of the system is big endian. | |
| FGE_API uint32_t | fge::net::GetSceneChecksum (fge::Scene &scene) |
| Get a basic scene checksum. | |
| FGE_API bool | fge::net::WritePacketDataToFile (Packet &pck, std::string const &file) |
| Utility function to write packet data into a file. | |
Everything related to network.
| using fge::net::FullTimestamp = uint64_t |
An timestamp represent current time in milliseconds.
| using fge::net::FullTimestampOffset = int64_t |
An timestamp offset.
| using fge::net::Latency_ms = uint16_t |
An latency represent the latency of the client->server / server->client connection.
| using fge::net::Timestamp = uint16_t |
An timestamp represent modulated current time in milliseconds.
| FGE_API uint32_t fge::net::GetSceneChecksum | ( | fge::Scene & | scene | ) |
Get a basic scene checksum.
The checksum is computed with every ObjectSid.
| scene | The scene |
| FGE_API bool fge::IsBigEndian | ( | ) |
Check if the endianness of the system is big endian.
| FGE_API uint16_t fge::SwapEndian_16 | ( | uint16_t | n | ) |
Swap the endianness of a 16-bit integer.
This function swap whatever the endianness of the value is.
| n | The value to swap |
| FGE_API uint32_t fge::SwapEndian_32 | ( | uint32_t | n | ) |
Swap the endianness of a 32-bit integer.
This function swap whatever the endianness of the value is.
| n | The value to swap |
| FGE_API uint64_t fge::SwapEndian_64 | ( | uint64_t | n | ) |
Swap the endianness of a 64-bit integer.
This function swap whatever the endianness of the value is.
| n | The value to swap |
| FGE_API double fge::SwapEndian_d | ( | double | n | ) |
Swap the endianness of a double.
This function swap whatever the endianness of the value is.
| n | The value to swap |
| FGE_API float fge::SwapEndian_f | ( | float | n | ) |
Swap the endianness of a float.
This function swap whatever the endianness of the value is.
| n | The value to swap |
| FGE_API uint16_t fge::SwapHostNetEndian_16 | ( | uint16_t | n | ) |
Swap the endianness of a 16-bit integer.
This function does nothing if the endianness is already big endian.
| n | The value to swap |
| FGE_API uint32_t fge::SwapHostNetEndian_32 | ( | uint32_t | n | ) |
Swap the endianness of a 32-bit integer.
This function does nothing if the endianness is already big endian.
| n | The value to swap |
| FGE_API uint64_t fge::SwapHostNetEndian_64 | ( | uint64_t | n | ) |
Swap the endianness of a 64-bit integer.
This function does nothing if the endianness is already big endian.
| n | The value to swap |
| FGE_API double fge::SwapHostNetEndian_d | ( | double | n | ) |
Swap the endianness of a double.
This function does nothing if the endianness is already little endian.
| n | The value to swap |
| FGE_API float fge::SwapHostNetEndian_f | ( | float | n | ) |
Swap the endianness of a float.
This function does nothing if the endianness is already little endian.
| n | The value to swap |