Project Alice
Loading...
Searching...
No Matches
network.cpp File Reference
#include <netinet/in.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <unistd.h>
#include <string_view>
#include "system_state.hpp"
#include "commands.hpp"
#include "SPSCQueue.h"
#include "network.hpp"
#include "serialization.hpp"
#include "gui_error_window.hpp"
#include "zstd.h"
Include dependency graph for network.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  network::local_addresses
 

Namespaces

namespace  network
 

Macros

#define ZSTD_STATIC_LINKING_ONLY
 
#define XXH_NAMESPACE   ZSTD_
 

Functions

std::string network::get_last_error_msg ()
 
void network::init (sys::state &state)
 
void network::write_network_save (sys::state &state)
 
void network::broadcast_save_to_clients (sys::state &state, command::payload &c, uint8_t const *buffer, uint32_t length, sys::checksum_key const &k)
 
void network::broadcast_to_clients (sys::state &state, command::payload &c)
 
void network::send_and_receive_commands (sys::state &state)
 
void network::finish (sys::state &state, bool notify_host)
 
void network::ban_player (sys::state &state, client_data &client)
 
void network::kick_player (sys::state &state, client_data &client)
 
void network::switch_player (sys::state &state, dcon::nation_id new_n, dcon::nation_id old_n)
 

Macro Definition Documentation

◆ XXH_NAMESPACE

#define XXH_NAMESPACE   ZSTD_

Definition at line 34 of file network.cpp.

◆ ZSTD_STATIC_LINKING_ONLY

#define ZSTD_STATIC_LINKING_ONLY

Definition at line 33 of file network.cpp.