Skip to content

Commit 11f64e3

Browse files
committed
Improved a few comments
1 parent 85919ee commit 11f64e3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

source/main/network/Network.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class Network
171171
std::string m_status_message;
172172
std::atomic<bool> m_shutdown;
173173
std::atomic<int> m_net_quality;
174-
int m_stream_id = 10;
174+
int m_stream_id = 10; //!< Counter
175175

176176
std::mutex m_users_mutex;
177177
std::mutex m_userdata_mutex;

source/main/network/RoRnet.h

+7-5
Original file line numberDiff line numberDiff line change
@@ -139,21 +139,23 @@ struct Header //!< Common header for every packet
139139

140140
struct StreamRegister //!< Sent from the client to server and vice versa, to broadcast a new stream
141141
{
142-
int32_t type; //!< stream type
142+
int32_t type; //!< 0 = Actor, 1 = Character, 3 = ChatSystem
143143
int32_t status; //!< initial stream status
144144
int32_t origin_sourceid; //!< origin sourceid
145145
int32_t origin_streamid; //!< origin streamid
146-
char name[128]; //!< the actor filename
146+
char name[128]; //!< file name
147147
char data[128]; //!< data used for stream setup
148148
};
149149

150-
struct ActorStreamRegister
150+
struct ActorStreamRegister //!< Must preserve mem. layout of RoRnet::StreamRegister
151151
{
152-
int32_t type; //!< stream type
152+
// RoRnet::StreamRegister: Common
153+
int32_t type; //!< 0
153154
int32_t status; //!< initial stream status
154155
int32_t origin_sourceid; //!< origin sourceid
155156
int32_t origin_streamid; //!< origin streamid
156-
char name[128]; //!< filename
157+
char name[128]; //!< truck file name
158+
// RoRnet::StreamRegister: Data buffer (128B)
157159
int32_t bufferSize; //!< initial stream status
158160
int32_t time; //!< initial time stamp
159161
char skin[60]; //!< skin

0 commit comments

Comments
 (0)