Project Alice
|
#include <network.hpp>
Public Member Functions | |
network_state () | |
~network_state () | |
Public Attributes | |
server_handshake_data | s_hshake |
sys::player_name | nickname |
sys::checksum_key | current_save_checksum |
struct sockaddr_storage | address |
rigtorp::SPSCQueue< command::payload > | outgoing_commands |
std::array< client_data, 128 > | clients |
std::vector< struct in6_addr > | v6_banlist |
std::vector< struct in_addr > | v4_banlist |
std::string | ip_address = "127.0.0.1" |
std::vector< char > | send_buffer |
std::vector< char > | early_send_buffer |
command::payload | recv_buffer |
std::vector< uint8_t > | save_data |
ankerl::unordered_dense::map< int32_t, sys::player_name > | map_of_player_names |
std::unique_ptr< uint8_t[]> | current_save_buffer |
size_t | recv_count = 0 |
uint32_t | current_save_length = 0 |
socket_t | socket_fd = 0 |
uint8_t | password [16] = { 0 } |
std::atomic< bool > | save_slock = false |
bool | as_v6 = false |
bool | as_server = false |
bool | save_stream = false |
bool | is_new_game = true |
bool | out_of_sync = false |
bool | reported_oos = false |
bool | handshake = true |
bool | finished = false |
Definition at line 71 of file network.hpp.
|
inline |
Definition at line 101 of file network.hpp.
|
inline |
Definition at line 102 of file network.hpp.
struct sockaddr_storage network::network_state::address |
Definition at line 75 of file network.hpp.
bool network::network_state::as_server = false |
Definition at line 93 of file network.hpp.
bool network::network_state::as_v6 = false |
Definition at line 92 of file network.hpp.
std::array<client_data, 128> network::network_state::clients |
Definition at line 77 of file network.hpp.
std::unique_ptr<uint8_t[]> network::network_state::current_save_buffer |
Definition at line 86 of file network.hpp.
sys::checksum_key network::network_state::current_save_checksum |
Definition at line 74 of file network.hpp.
uint32_t network::network_state::current_save_length = 0 |
Definition at line 88 of file network.hpp.
std::vector<char> network::network_state::early_send_buffer |
Definition at line 82 of file network.hpp.
bool network::network_state::finished = false |
Definition at line 99 of file network.hpp.
bool network::network_state::handshake = true |
Definition at line 98 of file network.hpp.
std::string network::network_state::ip_address = "127.0.0.1" |
Definition at line 80 of file network.hpp.
bool network::network_state::is_new_game = true |
Definition at line 95 of file network.hpp.
ankerl::unordered_dense::map<int32_t, sys::player_name> network::network_state::map_of_player_names |
Definition at line 85 of file network.hpp.
sys::player_name network::network_state::nickname |
Definition at line 73 of file network.hpp.
bool network::network_state::out_of_sync = false |
Definition at line 96 of file network.hpp.
rigtorp::SPSCQueue<command::payload> network::network_state::outgoing_commands |
Definition at line 76 of file network.hpp.
uint8_t network::network_state::password[16] = { 0 } |
Definition at line 90 of file network.hpp.
command::payload network::network_state::recv_buffer |
Definition at line 83 of file network.hpp.
size_t network::network_state::recv_count = 0 |
Definition at line 87 of file network.hpp.
bool network::network_state::reported_oos = false |
Definition at line 97 of file network.hpp.
server_handshake_data network::network_state::s_hshake |
Definition at line 72 of file network.hpp.
std::vector<uint8_t> network::network_state::save_data |
Definition at line 84 of file network.hpp.
std::atomic<bool> network::network_state::save_slock = false |
Definition at line 91 of file network.hpp.
bool network::network_state::save_stream = false |
Definition at line 94 of file network.hpp.
std::vector<char> network::network_state::send_buffer |
Definition at line 81 of file network.hpp.
socket_t network::network_state::socket_fd = 0 |
Definition at line 89 of file network.hpp.
std::vector<struct in_addr> network::network_state::v4_banlist |
Definition at line 79 of file network.hpp.
std::vector<struct in6_addr> network::network_state::v6_banlist |
Definition at line 78 of file network.hpp.