Headers - 1samuel411/SNetwork GitHub Wiki
Headers are the first 4 bytes sent in a Networked Message.
First Byte Headers
52
Sends all Networked Objects
51
Destroy an Object
50
Create an object
41
Receive a scene change
40
Change the scene
21
Represents an ASCII string command being sent.
20
Represents an ASCII string being sent.
14
Represents the user sync being sent. (List of NetworkPlayers)
12
Represents generic bytes being sent.
9
Represents an ID being sent.
7
Represents a information message send
6
Represents a failure request
5
Represents a invalid request
4
Represents an ASCII string command response.
3
Represents a data set for a specific user.
2
Represents a request to set server data.
1
Represents Server Data being sent.
0
Represents a custom message.
Second Byte Send Headers
2
Send a message to all clients
1
Send a message to the master client
[userId]
Send a message to a specific client
Third byte From Code
0
Server
[userId]
From the user with this id.
Fourth Custom Code
Custom codes are used by you for any of your needs.