RigsofRods
Soft-body Physics Simulation
Data Structures | Namespaces | Macros | Enumerations
RoRnet.h File Reference
#include "BitFlags.h"
+ Include dependency graph for RoRnet.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RoRnet::Header
 < Common header for every packet More...
 
struct  RoRnet::StreamRegister
 < Sent from the client to server and vice versa, to broadcast a new stream More...
 
struct  RoRnet::ActorStreamRegister
 < Must preserve mem. layout of RoRnet::StreamRegister More...
 
struct  RoRnet::StreamUnRegister
 
struct  RoRnet::UserInfo
 
struct  RoRnet::VehicleState
 < Formerly oob_t More...
 
struct  RoRnet::ServerInfo
 
struct  RoRnet::LegacyServerInfo
 

Namespaces

 RoRnet
 

Macros

#define RORNET_MAX_PEERS   64
 maximum clients connected at the same time More...
 
#define RORNET_MAX_MESSAGE_LENGTH   8192
 maximum size of a RoR message. 8192 bytes = 8 kibibytes More...
 
#define RORNET_LAN_BROADCAST_PORT   13000
 port used to send the broadcast announcement in LAN mode More...
 
#define RORNET_MAX_USERNAME_LEN   40
 bytes. More...
 
#define RORNET_VERSION   "RoRnet_2.45"
 

Enumerations

enum  RoRnet::MessageType {
  RoRnet::MSG2_HELLO = 1025, RoRnet::MSG2_FULL, RoRnet::MSG2_WRONG_PW, RoRnet::MSG2_WRONG_VER,
  RoRnet::MSG2_BANNED, RoRnet::MSG2_WELCOME, RoRnet::MSG2_VERSION, RoRnet::MSG2_SERVER_SETTINGS,
  RoRnet::MSG2_USER_INFO, RoRnet::MSG2_MASTERINFO, RoRnet::MSG2_NETQUALITY, RoRnet::MSG2_GAME_CMD,
  RoRnet::MSG2_USER_JOIN, RoRnet::MSG2_USER_LEAVE, RoRnet::MSG2_UTF8_CHAT, RoRnet::MSG2_UTF8_PRIVCHAT,
  RoRnet::MSG2_STREAM_REGISTER, RoRnet::MSG2_STREAM_REGISTER_RESULT, RoRnet::MSG2_STREAM_UNREGISTER, RoRnet::MSG2_STREAM_DATA,
  RoRnet::MSG2_STREAM_DATA_DISCARDABLE, RoRnet::MSG2_WRONG_VER_LEGACY = 1003
}
 
enum  RoRnet::UserAuth {
  RoRnet::AUTH_NONE = 0, RoRnet::AUTH_ADMIN = BITMASK(1), RoRnet::AUTH_RANKED = BITMASK(2), RoRnet::AUTH_MOD = BITMASK(3),
  RoRnet::AUTH_BOT = BITMASK(4), RoRnet::AUTH_BANNED = BITMASK(5)
}
 
enum  RoRnet::Netmask {
  RoRnet::NETMASK_HORN = BITMASK(1), RoRnet::NETMASK_POLICEAUDIO = BITMASK(2), RoRnet::NETMASK_PARTICLE = BITMASK(3), RoRnet::NETMASK_PBRAKE = BITMASK(4),
  RoRnet::NETMASK_TC_ACTIVE = BITMASK(5), RoRnet::NETMASK_ALB_ACTIVE = BITMASK(6), RoRnet::NETMASK_ENGINE_CONT = BITMASK(7), RoRnet::NETMASK_ENGINE_RUN = BITMASK(8),
  RoRnet::NETMASK_ENGINE_MODE_AUTOMATIC = BITMASK(9), RoRnet::NETMASK_ENGINE_MODE_SEMIAUTO = BITMASK(10), RoRnet::NETMASK_ENGINE_MODE_MANUAL = BITMASK(11), RoRnet::NETMASK_ENGINE_MODE_MANUAL_STICK = BITMASK(12),
  RoRnet::NETMASK_ENGINE_MODE_MANUAL_RANGES = BITMASK(13)
}
 
enum  RoRnet::Lightmask {
  RoRnet::LIGHTMASK_CUSTOM1 = BITMASK(1), RoRnet::LIGHTMASK_CUSTOM2 = BITMASK(2), RoRnet::LIGHTMASK_CUSTOM3 = BITMASK(3), RoRnet::LIGHTMASK_CUSTOM4 = BITMASK(4),
  RoRnet::LIGHTMASK_CUSTOM5 = BITMASK(5), RoRnet::LIGHTMASK_CUSTOM6 = BITMASK(6), RoRnet::LIGHTMASK_CUSTOM7 = BITMASK(7), RoRnet::LIGHTMASK_CUSTOM8 = BITMASK(8),
  RoRnet::LIGHTMASK_CUSTOM9 = BITMASK(9), RoRnet::LIGHTMASK_CUSTOM10 = BITMASK(10), RoRnet::LIGHTMASK_HEADLIGHT = BITMASK(11), RoRnet::LIGHTMASK_HIGHBEAMS = BITMASK(12),
  RoRnet::LIGHTMASK_FOGLIGHTS = BITMASK(13), RoRnet::LIGHTMASK_SIDELIGHTS = BITMASK(14), RoRnet::LIGHTMASK_BRAKES = BITMASK(15), RoRnet::LIGHTMASK_REVERSE = BITMASK(16),
  RoRnet::LIGHTMASK_BEACONS = BITMASK(17), RoRnet::LIGHTMASK_BLINK_LEFT = BITMASK(18), RoRnet::LIGHTMASK_BLINK_RIGHT = BITMASK(19), RoRnet::LIGHTMASK_BLINK_WARN = BITMASK(20)
}
 

Macro Definition Documentation

◆ RORNET_LAN_BROADCAST_PORT

#define RORNET_LAN_BROADCAST_PORT   13000

port used to send the broadcast announcement in LAN mode

Definition at line 32 of file RoRnet.h.

◆ RORNET_MAX_MESSAGE_LENGTH

#define RORNET_MAX_MESSAGE_LENGTH   8192

maximum size of a RoR message. 8192 bytes = 8 kibibytes

Definition at line 31 of file RoRnet.h.

◆ RORNET_MAX_PEERS

#define RORNET_MAX_PEERS   64

maximum clients connected at the same time

Definition at line 30 of file RoRnet.h.

◆ RORNET_MAX_USERNAME_LEN

#define RORNET_MAX_USERNAME_LEN   40

bytes.

Definition at line 33 of file RoRnet.h.

◆ RORNET_VERSION

#define RORNET_VERSION   "RoRnet_2.45"

Definition at line 35 of file RoRnet.h.