Develop online game server with Node.js & dgt-net package.
dgt-net provides:
packet_writer
packet_reader
Remote
RemoteProxy
client
server
for demo with Unity Game Engine:
https://github.com/0angelic0/dgt-net_demo
14. The Packet
uint16 uint16 int8 int16 int32 float uint16 uint8
Packet Header (2 Bytes)
Packet ID (2 Bytes)
Binary Stream (Byte Array)
Visualization
1 Byte
Payload Data
15. The Packet
18 10001 -50 -30,000 -2,000,000,000 15.05 50,500 19
Packet Header (2 Bytes)
Packet ID (2 Bytes)
Binary Stream (Byte Array)
Sample Data
1 Byte
Payload Data
16. The Packet
18 10002 H e l l o W o r l d ! ! 0
Packet Header (2 Bytes)
Packet ID (2 Bytes)
Binary Stream (Byte Array)
Sample Data
Null Terminate String
Payload Data