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

#include <network.hpp>

Collaboration diagram for network::client_data:

Public Member Functions

bool is_banned (sys::state &state) const
 
bool is_active () const
 

Public Attributes

dcon::nation_id playing_as {}
 
socket_t socket_fd = 0
 
struct sockaddr_storage address
 
client_handshake_data hshake_buffer
 
command::payload recv_buffer
 
size_t recv_count = 0
 
std::vector< char > send_buffer
 
std::vector< char > early_send_buffer
 
size_t total_sent_bytes = 0
 
size_t save_stream_offset = 0
 
size_t save_stream_size = 0
 
bool handshake = true
 

Detailed Description

Definition at line 48 of file network.hpp.

Member Function Documentation

◆ is_active()

bool network::client_data::is_active ( ) const
inline

Definition at line 66 of file network.hpp.

◆ is_banned()

bool network::client_data::is_banned ( sys::state state) const

Definition at line 566 of file network.cpp.

Member Data Documentation

◆ address

struct sockaddr_storage network::client_data::address

Definition at line 51 of file network.hpp.

◆ early_send_buffer

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

Definition at line 57 of file network.hpp.

◆ handshake

bool network::client_data::handshake = true

Definition at line 63 of file network.hpp.

◆ hshake_buffer

client_handshake_data network::client_data::hshake_buffer

Definition at line 53 of file network.hpp.

◆ playing_as

dcon::nation_id network::client_data::playing_as {}

Definition at line 49 of file network.hpp.

◆ recv_buffer

command::payload network::client_data::recv_buffer

Definition at line 54 of file network.hpp.

◆ recv_count

size_t network::client_data::recv_count = 0

Definition at line 55 of file network.hpp.

◆ save_stream_offset

size_t network::client_data::save_stream_offset = 0

Definition at line 61 of file network.hpp.

◆ save_stream_size

size_t network::client_data::save_stream_size = 0

Definition at line 62 of file network.hpp.

◆ send_buffer

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

Definition at line 56 of file network.hpp.

◆ socket_fd

socket_t network::client_data::socket_fd = 0

Definition at line 50 of file network.hpp.

◆ total_sent_bytes

size_t network::client_data::total_sent_bytes = 0

Definition at line 60 of file network.hpp.


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