Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Types.h File Reference
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <cerrno>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/ioctl.h>

Go to the source code of this file.

Namespaces

namespace  Ult
 

Macros

#define INVALID_SOCKET   -1
 
#define SOCKET_ERROR   -1
 
#define ioctlsocket   ioctl
 
#define IOCTL_TYPE   char
 

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
 

Macro Definition Documentation

◆ INVALID_SOCKET

#define INVALID_SOCKET   -1

◆ IOCTL_TYPE

#define IOCTL_TYPE   char

◆ ioctlsocket

#define ioctlsocket   ioctl

◆ SOCKET_ERROR

#define SOCKET_ERROR   -1