FTEQW
Documentation of the FTE engine source tree.
net_chan.c File Reference

Functions

unsigned int Net_PextMask (unsigned int protover, qboolean fornq)
 
void Netchan_Init (void)
 
void Netchan_OutOfBand (netsrc_t sock, netadr_t *adr, int length, const qbyte *data)
 
void VARGS Netchan_OutOfBandPrint (netsrc_t sock, netadr_t *adr, char *format,...)
 
void VARGS Netchan_OutOfBandTPrintf (netsrc_t sock, netadr_t *adr, int language, translation_t text,...)
 
void Netchan_Setup (netsrc_t sock, netchan_t *chan, netadr_t *adr, int qport)
 
qboolean Netchan_CanPacket (netchan_t *chan, int rate)
 
int Netchan_CanBytes (netchan_t *chan, int rate)
 
void Netchan_Block (netchan_t *chan, int bytes, int rate)
 
qboolean Netchan_CanReliable (netchan_t *chan, int rate)
 
qboolean ServerPaused (void)
 
size_t ZLib_DecompressBuffer (qbyte *in, size_t insize, qbyte *out, size_t maxoutsize)
 
enum nqnc_packettype_e NQNetChan_Process (netchan_t *chan)
 
int Netchan_Transmit (netchan_t *chan, int length, qbyte *data, int rate)
 
qboolean Netchan_Process (netchan_t *chan)
 

Variables

int net_drop
 
cvar_t showpackets = CVAR("showpackets", "0")
 
cvar_t showdrop = CVAR("showdrop", "0")
 
cvar_t qport = CVARF("qport_", "0", CVAR_NOSAVE)
 
cvar_t net_mtu = CVARD("net_mtu", "1384", "Specifies a maximum udp payload size, above which packets will be fragmented. If routers all worked properly this could be some massive value, and some massive value may work really nicely for lans. Use smaller values than the default if you're connecting through nested tunnels through routers that fail with IP fragmentation.")
 
cvar_t net_compress = CVARD("net_compress", "0", "Enables huffman compression of network packets.")
 
cvar_t pext_vrinputs = CVARD("_pext_vrinputs", "0", "RENAME ME WHEN STABLE. Networks player inputs slightly differently, allowing for greater capabilities, particuarly vr controller info.")
 
cvar_t pext_lerptime = CVARD("_pext_lerptime", "0", "RENAME ME WHEN STABLE. Sends timing hints for interpolation.")
 
cvar_t pext_infoblobs = CVARD("_pext_infoblobs", "0", "RENAME ME WHEN STABLE. Enables the use of very large infokeys containing potentially invalid chars. Note that the userinfo is still limited by sv_userinfo_bytelimit and sv_userinfo_keylimit.")
 
cvar_t pext_replacementdeltas = CVARD("pext_replacementdeltas", "1", "Enables the use of alternative nack-based entity deltas")
 
cvar_t pext_predinfo = CVARD("pext_predinfo", "1", "Enables some extra things to support prediction over NQ protocols.")
 

Function Documentation

◆ Net_PextMask()

unsigned int Net_PextMask ( unsigned int  protover,
qboolean  fornq 
)

◆ Netchan_Block()

void Netchan_Block ( netchan_t chan,
int  bytes,
int  rate 
)

◆ Netchan_CanBytes()

int Netchan_CanBytes ( netchan_t chan,
int  rate 
)

◆ Netchan_CanPacket()

qboolean Netchan_CanPacket ( netchan_t chan,
int  rate 
)

◆ Netchan_CanReliable()

qboolean Netchan_CanReliable ( netchan_t chan,
int  rate 
)

◆ Netchan_Init()

void Netchan_Init ( void  )

◆ Netchan_OutOfBand()

void Netchan_OutOfBand ( netsrc_t  sock,
netadr_t adr,
int  length,
const qbyte data 
)

◆ Netchan_OutOfBandPrint()

void VARGS Netchan_OutOfBandPrint ( netsrc_t  sock,
netadr_t adr,
char *  format,
  ... 
)

◆ Netchan_OutOfBandTPrintf()

void VARGS Netchan_OutOfBandTPrintf ( netsrc_t  sock,
netadr_t adr,
int  language,
translation_t  text,
  ... 
)

◆ Netchan_Process()

qboolean Netchan_Process ( netchan_t chan)

◆ Netchan_Setup()

void Netchan_Setup ( netsrc_t  sock,
netchan_t chan,
netadr_t adr,
int  qport 
)

◆ Netchan_Transmit()

int Netchan_Transmit ( netchan_t chan,
int  length,
qbyte data,
int  rate 
)

◆ NQNetChan_Process()

enum nqnc_packettype_e NQNetChan_Process ( netchan_t chan)

◆ ServerPaused()

qboolean ServerPaused ( void  )

◆ ZLib_DecompressBuffer()

size_t ZLib_DecompressBuffer ( qbyte in,
size_t  insize,
qbyte out,
size_t  maxoutsize 
)

Variable Documentation

◆ net_compress

cvar_t net_compress = CVARD("net_compress", "0", "Enables huffman compression of network packets.")

◆ net_drop

int net_drop

◆ net_mtu

cvar_t net_mtu = CVARD("net_mtu", "1384", "Specifies a maximum udp payload size, above which packets will be fragmented. If routers all worked properly this could be some massive value, and some massive value may work really nicely for lans. Use smaller values than the default if you're connecting through nested tunnels through routers that fail with IP fragmentation.")

◆ pext_infoblobs

cvar_t pext_infoblobs = CVARD("_pext_infoblobs", "0", "RENAME ME WHEN STABLE. Enables the use of very large infokeys containing potentially invalid chars. Note that the userinfo is still limited by sv_userinfo_bytelimit and sv_userinfo_keylimit.")

◆ pext_lerptime

cvar_t pext_lerptime = CVARD("_pext_lerptime", "0", "RENAME ME WHEN STABLE. Sends timing hints for interpolation.")

◆ pext_predinfo

cvar_t pext_predinfo = CVARD("pext_predinfo", "1", "Enables some extra things to support prediction over NQ protocols.")

◆ pext_replacementdeltas

cvar_t pext_replacementdeltas = CVARD("pext_replacementdeltas", "1", "Enables the use of alternative nack-based entity deltas")

◆ pext_vrinputs

cvar_t pext_vrinputs = CVARD("_pext_vrinputs", "0", "RENAME ME WHEN STABLE. Networks player inputs slightly differently, allowing for greater capabilities, particuarly vr controller info.")

◆ qport

cvar_t qport = CVARF("qport_", "0", CVAR_NOSAVE)

◆ showdrop

cvar_t showdrop = CVAR("showdrop", "0")

◆ showpackets

cvar_t showpackets = CVAR("showpackets", "0")