Crossfire Client, Trunk  R20507
Data Fields
ClientSocket Struct Reference

Basic support for socket communications, including the file descriptor, input buffer, server, server, version, etc. More...

#include <client.h>

Collaboration diagram for ClientSocket:
Collaboration graph

Data Fields

int command_received
 These are used for the newer 'windowing' method of commands - number of last command sent, number of received confirmation. More...
 
int command_sent
 
int command_time
 Time (in ms) players commands currently take to execute. More...
 
int cs_version
 
GSocketConnection * fd
 
int sc_version
 Server versions of these. More...
 
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

GSocketConnection* ClientSocket::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(), and save_keys().


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