Project Alice
Loading...
Searching...
No Matches
network::network_state Struct Reference

#include <network.hpp>

Collaboration diagram for network::network_state:

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::payloadoutgoing_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_tsave_data
 
ankerl::unordered_dense::map< int32_t, sys::player_namemap_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
 

Detailed Description

Definition at line 71 of file network.hpp.

Constructor & Destructor Documentation

◆ network_state()

network::network_state::network_state ( )
inline

Definition at line 101 of file network.hpp.

◆ ~network_state()

network::network_state::~network_state ( )
inline

Definition at line 102 of file network.hpp.

Member Data Documentation

◆ address

struct sockaddr_storage network::network_state::address

Definition at line 75 of file network.hpp.

◆ as_server

bool network::network_state::as_server = false

Definition at line 93 of file network.hpp.

◆ as_v6

bool network::network_state::as_v6 = false

Definition at line 92 of file network.hpp.

◆ clients

std::array<client_data, 128> network::network_state::clients

Definition at line 77 of file network.hpp.

◆ current_save_buffer

std::unique_ptr<uint8_t[]> network::network_state::current_save_buffer

Definition at line 86 of file network.hpp.

◆ current_save_checksum

sys::checksum_key network::network_state::current_save_checksum

Definition at line 74 of file network.hpp.

◆ current_save_length

uint32_t network::network_state::current_save_length = 0

Definition at line 88 of file network.hpp.

◆ early_send_buffer

std::vector<char> network::network_state::early_send_buffer

Definition at line 82 of file network.hpp.

◆ finished

bool network::network_state::finished = false

Definition at line 99 of file network.hpp.

◆ handshake

bool network::network_state::handshake = true

Definition at line 98 of file network.hpp.

◆ ip_address

std::string network::network_state::ip_address = "127.0.0.1"

Definition at line 80 of file network.hpp.

◆ is_new_game

bool network::network_state::is_new_game = true

Definition at line 95 of file network.hpp.

◆ map_of_player_names

ankerl::unordered_dense::map<int32_t, sys::player_name> network::network_state::map_of_player_names

Definition at line 85 of file network.hpp.

◆ nickname

sys::player_name network::network_state::nickname

Definition at line 73 of file network.hpp.

◆ out_of_sync

bool network::network_state::out_of_sync = false

Definition at line 96 of file network.hpp.

◆ outgoing_commands

rigtorp::SPSCQueue<command::payload> network::network_state::outgoing_commands

Definition at line 76 of file network.hpp.

◆ password

uint8_t network::network_state::password[16] = { 0 }

Definition at line 90 of file network.hpp.

◆ recv_buffer

command::payload network::network_state::recv_buffer

Definition at line 83 of file network.hpp.

◆ recv_count

size_t network::network_state::recv_count = 0

Definition at line 87 of file network.hpp.

◆ reported_oos

bool network::network_state::reported_oos = false

Definition at line 97 of file network.hpp.

◆ s_hshake

server_handshake_data network::network_state::s_hshake

Definition at line 72 of file network.hpp.

◆ save_data

std::vector<uint8_t> network::network_state::save_data

Definition at line 84 of file network.hpp.

◆ save_slock

std::atomic<bool> network::network_state::save_slock = false

Definition at line 91 of file network.hpp.

◆ save_stream

bool network::network_state::save_stream = false

Definition at line 94 of file network.hpp.

◆ send_buffer

std::vector<char> network::network_state::send_buffer

Definition at line 81 of file network.hpp.

◆ socket_fd

socket_t network::network_state::socket_fd = 0

Definition at line 89 of file network.hpp.

◆ v4_banlist

std::vector<struct in_addr> network::network_state::v4_banlist

Definition at line 79 of file network.hpp.

◆ v6_banlist

std::vector<struct in6_addr> network::network_state::v6_banlist

Definition at line 78 of file network.hpp.


The documentation for this struct was generated from the following file: