Skip to main content

Enum Commands

Small message used to control a connection

and Commands uses their own byte/enum to split up the flow and add struture to the code.

Syntax
public enum Commands

Fields

ConnectRequest

Sent from client to request to connect to server

Declaration
ConnectRequest = 1

ConnectionAccepted

Sent when Server accepts client

Declaration
ConnectionAccepted = 2

ConnectionRejected

Sent when server rejects client

Declaration
ConnectionRejected = 3

Disconnect

Sent from client or server to close connection

Declaration
Disconnect = 4