Crossfire Client, Trunk  R20789
ClientSocket Struct Reference

#include <client.h>

+ Collaboration diagram for ClientSocket:

Data Fields

int command_received
 
int command_sent
 
int command_time
 
int cs_version
 
GSocketConnection * fd
 
int sc_version
 
char * servername
 

Detailed Description

Basic support for socket communications, including the file descriptor, input buffer, server, server, version, etc. ClientSocket could probably hold more of the global values - it could probably hold most all socket/communication related values instead of globals.

Definition at line 119 of file client.h.

Field Documentation

◆ command_received

int ClientSocket::command_received

These are used for the newer 'windowing' method of commands - number of last command sent, number of received confirmation

Definition at line 123 of file client.h.

Referenced by CompleteCmd(), reset_vars_common(), script_process_cmd(), and send_command().

◆ command_sent

int ClientSocket::command_sent

Definition at line 123 of file client.h.

Referenced by CompleteCmd(), reset_vars_common(), script_process_cmd(), and send_command().

◆ command_time

int ClientSocket::command_time

Time (in ms) players commands currently take to execute

Definition at line 128 of file client.h.

Referenced by CompleteCmd(), and reset_vars_common().

◆ cs_version

int ClientSocket::cs_version

Definition at line 121 of file client.h.

Referenced by client_negotiate(), send_command(), and VersionCmd().

◆ fd

◆ sc_version

int ClientSocket::sc_version

Server versions of these

Definition at line 121 of file client.h.

Referenced by client_negotiate(), draw_stats(), set_item_values(), and VersionCmd().

◆ servername

char* ClientSocket::servername

Definition at line 131 of file client.h.

Referenced by client_connect(), keybindings_init(), save_keys(), and script_init().


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