Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Networking

Classes

class  Ult::Network
 
class  Ult::Packet
 
class  Ult::Socket
 

Typedefs

typedef int ULT_SOCKET
 
typedef char Ult::NetPacketValue
 
typedef void(* Ult::NetCallback) (int u, int y, char *d, int s)
 

Enumerations

enum class  Ult::NetMsgType {
  Ult::NetMsgType::ServerDisconnect = 0 , Ult::NetMsgType::ClientDisconnect , Ult::NetMsgType::ForceDisconnect , Ult::NetMsgType::ConnectAccepted ,
  Ult::NetMsgType::SendError , Ult::NetMsgType::RespondRequire , Ult::NetMsgType::RespondOk
}
 
enum class  Ult::NetType { Ult::NetType::Null = 0 , Ult::NetType::Server , Ult::NetType::Client }
 
enum class  Ult::NetResult { Ult::NetResult::NoData = 0 , Ult::NetResult::DataFail , Ult::NetResult::PartialData , Ult::NetResult::DataSuccess }
 

Variables

constexpr size_t Ult::MAX_PACKET_SIZE = 256
 
constexpr char Ult::NetSystemUsage = 0
 

Detailed Description

Typedef Documentation

◆ NetCallback

typedef void(* Ult::NetCallback) (int u, int y, char *d, int s)

Callback function to be used in a Network instance.

Parameters
uPacket usage value
yPacket id/type value
dPacket data pointer
sPacket data size

◆ NetPacketValue

typedef char Ult::NetPacketValue

◆ ULT_SOCKET

typedef int ULT_SOCKET

Enumeration Type Documentation

◆ NetMsgType

enum class Ult::NetMsgType
strong
Enumerator
ServerDisconnect 
ClientDisconnect 
ForceDisconnect 
ConnectAccepted 
SendError 
RespondRequire 
RespondOk 

◆ NetResult

enum class Ult::NetResult
strong
Enumerator
NoData 
DataFail 
PartialData 
DataSuccess 

◆ NetType

enum class Ult::NetType
strong
Enumerator
Null 
Server 
Client 

Variable Documentation

◆ MAX_PACKET_SIZE

size_t Ult::MAX_PACKET_SIZE = 256
constexpr

◆ NetSystemUsage

char Ult::NetSystemUsage = 0
constexpr