23 lines
541 B
C#
23 lines
541 B
C#
namespace HSchool.Protocol;
|
|
|
|
/// <summary>
|
|
/// First byte of every frame. Client-to-server ids live in 0x00-0x7F,
|
|
/// server-to-client ids in 0x80-0xFF, so a misrouted frame is obvious.
|
|
/// </summary>
|
|
public enum MessageType : byte
|
|
{
|
|
None = 0x00,
|
|
|
|
ClientHello = 0x01,
|
|
ClientPing = 0x02,
|
|
ClientOpenSchool = 0x03,
|
|
ClientCloseSchool = 0x04,
|
|
ClientSetRunning = 0x05,
|
|
ClientSetSpeed = 0x06,
|
|
|
|
ServerWelcome = 0x81,
|
|
ServerPong = 0x82,
|
|
ServerClock = 0x83,
|
|
ServerSchoolGone = 0x84,
|
|
}
|