Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
networkutil.h File Reference

Go to the source code of this file.

Macros

#define __NETWORKUTIL_H
 
#define LOGBUFFER(buf, len)
 

Functions

UnsignedInt ResolveIP (AsciiString host)
 
UnsignedShort GenerateNextCommandID ()
 
Bool DoesCommandRequireACommandID (NetCommandType type)
 
Bool CommandRequiresAck (NetCommandMsg *msg)
 
Bool CommandRequiresDirectSend (NetCommandMsg *msg)
 
Bool IsCommandSynchronized (NetCommandType type)
 
AsciiString GetAsciiNetCommandType (NetCommandType type)
 

Macro Definition Documentation

◆ __NETWORKUTIL_H

#define __NETWORKUTIL_H

Definition at line 28 of file networkutil.h.

◆ LOGBUFFER

#define LOGBUFFER ( buf,
len )
Value:
{}

Definition at line 47 of file networkutil.h.

Function Documentation

◆ CommandRequiresAck()

Bool CommandRequiresAck ( NetCommandMsg * msg)

Returns true if this type of network command requires an ack.

Definition at line 147 of file NetworkUtil.cpp.

◆ CommandRequiresDirectSend()

Bool CommandRequiresDirectSend ( NetCommandMsg * msg)

Returns true if this type of network command requires the ack to be sent directly to the player rather than going through the packet router. This should really only be used by commands used on the disconnect screen.

Definition at line 190 of file NetworkUtil.cpp.

◆ DoesCommandRequireACommandID()

Bool DoesCommandRequireACommandID ( NetCommandType type)

Returns true if this type of command requires a unique command ID.

Definition at line 119 of file NetworkUtil.cpp.

◆ GenerateNextCommandID()

UnsignedShort GenerateNextCommandID ( )

Returns the next network command ID.

Definition at line 110 of file NetworkUtil.cpp.

◆ GetAsciiNetCommandType()

AsciiString GetAsciiNetCommandType ( NetCommandType type)

Definition at line 206 of file NetworkUtil.cpp.

◆ IsCommandSynchronized()

Bool IsCommandSynchronized ( NetCommandType type)

Definition at line 173 of file NetworkUtil.cpp.

◆ ResolveIP()

UnsignedInt ResolveIP ( AsciiString host)

ResolveIP turns a string ("games2.westwood.com", or "192.168.0.1") into a 32-bit unsigned integer.

Definition at line 79 of file NetworkUtil.cpp.