Project Alice
|
Classes | |
struct | client_data |
struct | client_handshake_data |
struct | local_addresses |
struct | network_state |
class | port_forwarder |
struct | server_handshake_data |
class | SHA512 |
Typedefs | |
typedef int | socket_t |
typedef unsigned long long | uint64 |
Variables | |
SHA512 | sha512 |
constexpr short | default_server_port = 1984 |
unsigned int const | SEQUENCE_LEN = (1024 / 64) |
size_t const | HASH_LEN = 8 |
size_t const | WORKING_VAR_LEN = 8 |
size_t const | MESSAGE_SCHEDULE_LEN = 80 |
size_t const | MESSAGE_BLOCK_SIZE = 1024 |
size_t const | CHAR_LEN_BITS = 8 |
size_t const | OUTPUT_LEN = 8 |
size_t const | WORD_LEN = 8 |
typedef int network::socket_t |
Definition at line 31 of file network.hpp.
typedef unsigned long long network::uint64 |
Definition at line 27 of file SHA512.hpp.
void network::ban_player | ( | sys::state & | state, |
client_data & | client | ||
) |
Definition at line 1634 of file network.cpp.
void network::broadcast_save_to_clients | ( | sys::state & | state, |
command::payload & | c, | ||
uint8_t const * | buffer, | ||
uint32_t | length, | ||
sys::checksum_key const & | k | ||
) |
Definition at line 1301 of file network.cpp.
void network::broadcast_to_clients | ( | sys::state & | state, |
command::payload & | c | ||
) |
Definition at line 1324 of file network.cpp.
void network::clear_socket | ( | sys::state & | state, |
client_data & | client | ||
) |
int network::client_process_handshake | ( | sys::state & | state | ) |
void network::client_send_handshake | ( | sys::state & | state | ) |
dcon::mp_player_id network::create_mp_player | ( | sys::state & | state, |
sys::player_name & | name, | ||
sys::player_password_raw & | password | ||
) |
Definition at line 662 of file network.cpp.
|
inlinenoexcept |
Definition at line 99 of file persistent_server_extensions.hpp.
dcon::mp_player_id network::find_country_player | ( | sys::state & | state, |
dcon::nation_id | nation | ||
) |
dcon::mp_player_id network::find_mp_player | ( | sys::state & | state, |
sys::player_name | name | ||
) |
void network::finish | ( | sys::state & | state, |
bool | notify_host | ||
) |
Definition at line 1568 of file network.cpp.
void network::full_reset_after_oos | ( | sys::state & | state | ) |
Definition at line 1064 of file network.cpp.
std::string network::get_last_error_msg | ( | ) |
Definition at line 278 of file network.cpp.
void network::init | ( | sys::state & | state | ) |
Definition at line 832 of file network.cpp.
void network::kick_player | ( | sys::state & | state, |
client_data & | client | ||
) |
Definition at line 1628 of file network.cpp.
void network::load_host_settings | ( | sys::state & | state | ) |
Definition at line 1686 of file network.cpp.
dcon::mp_player_id network::load_mp_player | ( | sys::state & | state, |
sys::player_name & | name, | ||
sys::player_password_hash & | password_hash, | ||
sys::player_password_salt & | password_salt | ||
) |
|
inlinenoexcept |
Definition at line 66 of file persistent_server_extensions.hpp.
void network::log_player_nations | ( | sys::state & | state | ) |
void network::notify_player_joins | ( | sys::state & | state, |
network::client_data & | client | ||
) |
Definition at line 918 of file network.cpp.
void network::notify_player_joins | ( | sys::state & | state, |
sys::player_name | name, | ||
dcon::nation_id | nation | ||
) |
void network::notify_player_joins | ( | sys::state & | state, |
sys::player_name | name, | ||
dcon::nation_id | nation, | ||
sys::player_password_raw | password | ||
) |
void network::notify_player_joins_discovery | ( | sys::state & | state, |
network::client_data & | client | ||
) |
Definition at line 922 of file network.cpp.
void network::notify_start_game | ( | sys::state & | state, |
network::client_data & | client | ||
) |
Definition at line 1002 of file network.cpp.
bool network::pause_game | ( | sys::state & | state | ) |
Definition at line 1246 of file network.cpp.
void network::place_host_player_after_saveload | ( | sys::state & | state | ) |
Definition at line 1667 of file network.cpp.
|
inlinenoexcept |
Definition at line 22 of file persistent_server_extensions.hpp.
void network::remove_player | ( | sys::state & | state, |
sys::player_name | name | ||
) |
Definition at line 1613 of file network.cpp.
void network::save_host_settings | ( | sys::state & | state | ) |
Definition at line 1710 of file network.cpp.
void network::send_and_receive_commands | ( | sys::state & | state | ) |
Definition at line 1368 of file network.cpp.
void network::send_savegame | ( | sys::state & | state, |
network::client_data & | client, | ||
bool | hotjoin = false |
||
) |
Definition at line 943 of file network.cpp.
int network::server_process_commands | ( | sys::state & | state, |
network::client_data & | client | ||
) |
Definition at line 1181 of file network.cpp.
int network::server_process_handshake | ( | sys::state & | state, |
network::client_data & | client | ||
) |
Definition at line 1131 of file network.cpp.
void network::server_send_handshake | ( | sys::state & | state, |
network::client_data & | client | ||
) |
Definition at line 807 of file network.cpp.
void network::switch_player | ( | sys::state & | state, |
dcon::nation_id | new_n, | ||
dcon::nation_id | old_n | ||
) |
Definition at line 1650 of file network.cpp.
bool network::unpause_game | ( | sys::state & | state | ) |
Definition at line 1261 of file network.cpp.
void network::update_mp_player_password | ( | sys::state & | state, |
dcon::mp_player_id | player_id, | ||
sys::player_password_raw & | password | ||
) |
Definition at line 683 of file network.cpp.
void network::write_network_save | ( | sys::state & | state | ) |
Definition at line 1268 of file network.cpp.
|
inlinenoexcept |
Definition at line 80 of file persistent_server_extensions.hpp.
size_t const network::CHAR_LEN_BITS = 8 |
Definition at line 35 of file SHA512.hpp.
|
inlineconstexpr |
Definition at line 26 of file network.hpp.
size_t const network::HASH_LEN = 8 |
Definition at line 31 of file SHA512.hpp.
size_t const network::MESSAGE_BLOCK_SIZE = 1024 |
Definition at line 34 of file SHA512.hpp.
size_t const network::MESSAGE_SCHEDULE_LEN = 80 |
Definition at line 33 of file SHA512.hpp.
size_t const network::OUTPUT_LEN = 8 |
Definition at line 36 of file SHA512.hpp.
unsigned int const network::SEQUENCE_LEN = (1024 / 64) |
Definition at line 30 of file SHA512.hpp.
SHA512 network::sha512 |
Definition at line 60 of file network.cpp.
size_t const network::WORD_LEN = 8 |
Definition at line 37 of file SHA512.hpp.
size_t const network::WORKING_VAR_LEN = 8 |
Definition at line 32 of file SHA512.hpp.