Struct client_manager_t

Struct Documentation

struct client_manager_t

Segment for the client state: v capacity ----------——-—-----—–—-----— | untagged | untagged | gui | player | … | … ---------——-—-----—–—-----— ^ | idx_of_gui ^ idx_of_playerss

1st segment contains “untagged” client (they are connected, and thus their tag is unclear until the handshake done).

The layout also for simple iteration on each segment, all client while keeping constraints from the client indexing (required by the server).

It will change the pdfs struct upon updates.

Public Members

client_state_t *clients
size_t count
size_t capacity
size_t idx_of_gui
size_t idx_of_players
struct pollfd *server_pfds