Netcode library

James Peret 2e17ad37e5 Added server/client tick sync on handshake 2 years ago
Runtime 2e17ad37e5 Added server/client tick sync on handshake 2 years ago
.gitignore d1e998fa2c Initial commit 2 years ago
Readme.md 6e34608d36 Added NetworkTick to Client/Server Status 2 years ago
Readme.md.meta d1e998fa2c Initial commit 2 years ago
Runtime.meta d1e998fa2c Initial commit 2 years ago

Readme.md

KairoEngine.Multiplayer

Messages and Events

Server and clients exchange Net Messages which then become local events that can be subscribed to. The following table show the relations of messages and events.

Role Action NetMsg Event
server Start PortError
server Start Listening
server Stop Stopped
server SendData NetClientConnectedMsg ClientConnected
server SendData NetClientDisconnectedMsg ClientDisconnected
server ReceiveData NetMsg InvalidOpCode
server ReceiveData NetDisconnectMsg SendingDisconnectMessageToClient
server ReceiveData NetHandshakeMsg HandshakeReceived
server SendData NetHandshakeMsg AcceptingHandshake
client Start Connecting
client Start Connected
client Start ErrorConnecting
client Stop Disconnected
client Stop ServerDisconnected
client ReceiveData NetMsg InvalidOpCode
client SendData NetDisconnectMsg SendingDisconnectMessageToServer
client ReceiveData NetDisconnectMsg ServerDisconnect
client SendData NetHandshakeMsg SendingHandshake
client ReceiveData NetHandshakeMsg HandshakeAccepted
client ReceiveData NetClientConnectedMsg PeerConnected
client ReceiveData NetClientDisconnectedMsg PeerDisconnected