Skip to content

Commit

Permalink
Improved a few comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed Jun 15, 2023
1 parent 15d8974 commit c4b541f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/main/network/Network.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class Network
std::string m_status_message;
std::atomic<bool> m_shutdown;
std::atomic<int> m_net_quality;
int m_stream_id = 10;
int m_stream_id = 10; //!< Counter

std::mutex m_users_mutex;
std::mutex m_userdata_mutex;
Expand Down
12 changes: 7 additions & 5 deletions source/main/network/RoRnet.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,21 +139,23 @@ struct Header //!< Common header for every packet

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

struct ActorStreamRegister
struct ActorStreamRegister //!< Must preserve mem. layout of RoRnet::StreamRegister
{
int32_t type; //!< stream type
// RoRnet::StreamRegister: Common
int32_t type; //!< 0
int32_t status; //!< initial stream status
int32_t origin_sourceid; //!< origin sourceid
int32_t origin_streamid; //!< origin streamid
char name[128]; //!< filename
char name[128]; //!< truck file name
// RoRnet::StreamRegister: Data buffer (128B)
int32_t bufferSize; //!< initial stream status
int32_t time; //!< initial time stamp
char skin[60]; //!< skin
Expand Down

0 comments on commit c4b541f

Please sign in to comment.