File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ class Network
171
171
std::string m_status_message;
172
172
std::atomic<bool > m_shutdown;
173
173
std::atomic<int > m_net_quality;
174
- int m_stream_id = 10 ;
174
+ int m_stream_id = 10 ; // !< Counter
175
175
176
176
std::mutex m_users_mutex;
177
177
std::mutex m_userdata_mutex;
Original file line number Diff line number Diff line change @@ -139,21 +139,23 @@ struct Header //!< Common header for every packet
139
139
140
140
struct StreamRegister // !< Sent from the client to server and vice versa, to broadcast a new stream
141
141
{
142
- int32_t type; // !< stream type
142
+ int32_t type; // !< 0 = Actor, 1 = Character, 3 = ChatSystem
143
143
int32_t status; // !< initial stream status
144
144
int32_t origin_sourceid; // !< origin sourceid
145
145
int32_t origin_streamid; // !< origin streamid
146
- char name[128 ]; // !< the actor filename
146
+ char name[128 ]; // !< file name
147
147
char data[128 ]; // !< data used for stream setup
148
148
};
149
149
150
- struct ActorStreamRegister
150
+ struct ActorStreamRegister // !< Must preserve mem. layout of RoRnet::StreamRegister
151
151
{
152
- int32_t type; // !< stream type
152
+ // RoRnet::StreamRegister: Common
153
+ int32_t type; // !< 0
153
154
int32_t status; // !< initial stream status
154
155
int32_t origin_sourceid; // !< origin sourceid
155
156
int32_t origin_streamid; // !< origin streamid
156
- char name[128 ]; // !< filename
157
+ char name[128 ]; // !< truck file name
158
+ // RoRnet::StreamRegister: Data buffer (128B)
157
159
int32_t bufferSize; // !< initial stream status
158
160
int32_t time; // !< initial time stamp
159
161
char skin[60 ]; // !< skin
You can’t perform that action at this time.
0 commit comments