DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
netconn_t Struct Reference

#include <netconn.h>

Collaboration diagram for netconn_t:

Data Structures

struct  netconn_nq_s
struct  netconn_qw_s

Data Fields

char address [128]
double cleartime
double connecttime
 if this time is reached, kick off peer
crypto_t crypto
int droppedDatagrams
double incoming_cleartime
netgraphitem_t incoming_netgraph [NETGRAPH_PACKETS]
int incoming_packetcounter
double lastMessageTime
double lastSendTime
lhnetsocket_tmysocket
struct netconn_s * next
struct netconn_t::netconn_nq_s nq
netgraphitem_t outgoing_netgraph [NETGRAPH_PACKETS]
int outgoing_packetcounter
unsigned int outgoing_unreliable_sequence
 used by both NQ and QW protocols
int packetsReceived
int packetsReSent
int packetsSent
lhnetaddress_t peeraddress
struct netconn_t::netconn_qw_s qw
int receivedDuplicateCount
unsigned char receiveMessage [NET_MAXMESSAGE]
int receiveMessageLength
 reliable message that is currently being received (for putting together fragments)
int reliableMessagesReceived
int reliableMessagesSent
unsigned char sendMessage [NET_MAXMESSAGE]
int sendMessageLength
 reliable message that is currently sending (for building fragments)
double timeout
int unreliableMessagesReceived
int unreliableMessagesSent
sizebuf_t message
 writing buffer to send to peer as the next reliable message can be added to at any time, copied into sendMessage buffer when it is possible to send a reliable message and then cleared
unsigned char messagedata [NET_MAXMESSAGE]

Detailed Description

Definition at line 142 of file netconn.h.

Field Documentation

◆ address

char netconn_t::address[128]

◆ cleartime

double netconn_t::cleartime

◆ connecttime

double netconn_t::connecttime

if this time is reached, kick off peer

Definition at line 152 of file netconn.h.

◆ crypto

◆ droppedDatagrams

int netconn_t::droppedDatagrams

Definition at line 239 of file netconn.h.

Referenced by NetConn_ReceivedMessage(), and PrintStats().

◆ incoming_cleartime

double netconn_t::incoming_cleartime

Definition at line 218 of file netconn.h.

Referenced by NetConn_ReceivedMessage().

◆ incoming_netgraph

netgraphitem_t netconn_t::incoming_netgraph[NETGRAPH_PACKETS]

Definition at line 227 of file netconn.h.

Referenced by NetConn_ReceivedMessage(), SCR_DrawNetGraph(), and SV_Status_f().

◆ incoming_packetcounter

int netconn_t::incoming_packetcounter

Definition at line 226 of file netconn.h.

Referenced by NetConn_ReceivedMessage(), and SCR_DrawNetGraph().

◆ lastMessageTime

double netconn_t::lastMessageTime

Definition at line 154 of file netconn.h.

Referenced by NetConn_Open(), and NetConn_ReceivedMessage().

◆ lastSendTime

double netconn_t::lastSendTime

Definition at line 155 of file netconn.h.

Referenced by NetConn_ReceivedMessage(), and NetConn_SendUnreliableMessage().

◆ message

sizebuf_t netconn_t::message

writing buffer to send to peer as the next reliable message can be added to at any time, copied into sendMessage buffer when it is possible to send a reliable message and then cleared

Definition at line 161 of file netconn.h.

Referenced by NetConn_Open(), NetConn_SendUnreliableMessage(), SV_BroadcastPrint(), SV_ConnectClient(), SV_SendClientDatagram(), SV_SendServerinfo(), SV_SpawnServer(), SV_UpdateToReliableMessages(), VM_sprint(), VM_SV_centerprint(), VM_SV_lightstyle(), and VM_SV_sprint().

◆ messagedata

unsigned char netconn_t::messagedata[NET_MAXMESSAGE]

Definition at line 162 of file netconn.h.

Referenced by NetConn_Open().

◆ mysocket

◆ next

struct netconn_s* netconn_t::next

Definition at line 144 of file netconn.h.

Referenced by Net_Stats_f(), NetConn_Close(), and NetConn_Open().

◆ nq

◆ outgoing_netgraph

netgraphitem_t netconn_t::outgoing_netgraph[NETGRAPH_PACKETS]

◆ outgoing_packetcounter

int netconn_t::outgoing_packetcounter

◆ outgoing_unreliable_sequence

unsigned int netconn_t::outgoing_unreliable_sequence

used by both NQ and QW protocols

Definition at line 176 of file netconn.h.

Referenced by NetConn_SendUnreliableMessage(), and PrintStats().

◆ packetsReceived

int netconn_t::packetsReceived

Definition at line 237 of file netconn.h.

Referenced by NetConn_ReceivedMessage(), and PrintStats().

◆ packetsReSent

int netconn_t::packetsReSent

Definition at line 236 of file netconn.h.

Referenced by NetConn_SendUnreliableMessage(), and PrintStats().

◆ packetsSent

int netconn_t::packetsSent

Definition at line 235 of file netconn.h.

Referenced by NetConn_ReceivedMessage(), NetConn_SendUnreliableMessage(), and PrintStats().

◆ peeraddress

◆ qw

◆ receivedDuplicateCount

int netconn_t::receivedDuplicateCount

Definition at line 238 of file netconn.h.

Referenced by NetConn_ReceivedMessage(), and PrintStats().

◆ receiveMessage

unsigned char netconn_t::receiveMessage[NET_MAXMESSAGE]

Definition at line 173 of file netconn.h.

Referenced by NetConn_ReceivedMessage().

◆ receiveMessageLength

int netconn_t::receiveMessageLength

reliable message that is currently being received (for putting together fragments)

Definition at line 172 of file netconn.h.

Referenced by NetConn_ReceivedMessage().

◆ reliableMessagesReceived

int netconn_t::reliableMessagesReceived

Definition at line 243 of file netconn.h.

Referenced by NetConn_ReceivedMessage(), and PrintStats().

◆ reliableMessagesSent

int netconn_t::reliableMessagesSent

Definition at line 242 of file netconn.h.

Referenced by NetConn_SendUnreliableMessage(), and PrintStats().

◆ sendMessage

unsigned char netconn_t::sendMessage[NET_MAXMESSAGE]

Definition at line 168 of file netconn.h.

Referenced by NetConn_ReceivedMessage(), and NetConn_SendUnreliableMessage().

◆ sendMessageLength

int netconn_t::sendMessageLength

reliable message that is currently sending (for building fragments)

Definition at line 167 of file netconn.h.

Referenced by NetConn_ReceivedMessage(), NetConn_SendUnreliableMessage(), PrintStats(), and SV_SendClientDatagram().

◆ timeout

double netconn_t::timeout

Definition at line 153 of file netconn.h.

Referenced by NetConn_Open(), NetConn_ReceivedMessage(), and SV_SendServerinfo().

◆ unreliableMessagesReceived

int netconn_t::unreliableMessagesReceived

Definition at line 241 of file netconn.h.

Referenced by NetConn_ReceivedMessage(), and PrintStats().

◆ unreliableMessagesSent

int netconn_t::unreliableMessagesSent

Definition at line 240 of file netconn.h.

Referenced by NetConn_SendUnreliableMessage(), and PrintStats().


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