Crossfire Client, Trunk
ClientSocket Struct Reference

#include <client.h>

+ Collaboration diagram for ClientSocket:

Data Fields

guint16 command_received
 
guint16 command_sent
 
int command_time
 
int cs_version
 
gint8 dir [COMMAND_MAX]
 
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 123 of file client.h.

Field Documentation

◆ command_received

guint16 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 127 of file client.h.

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

◆ command_sent

guint16 ClientSocket::command_sent

Definition at line 127 of file client.h.

Referenced by CompleteCmd(), keyfunc(), 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 132 of file client.h.

Referenced by CompleteCmd(), and reset_vars_common().

◆ cs_version

int ClientSocket::cs_version

Definition at line 125 of file client.h.

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

◆ dir

gint8 ClientSocket::dir[COMMAND_MAX]

Definition at line 136 of file client.h.

Referenced by CompleteCmd(), mapdata_newmap(), and send_command().

◆ fd

◆ sc_version

int ClientSocket::sc_version

Server versions of these

Definition at line 125 of file client.h.

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

◆ servername

char* ClientSocket::servername

Definition at line 135 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: