1 module cheetah.socketeventtype; 2 3 /// Enumeration of socket event types. 4 enum SocketEventType : size_t { 5 /// Event triggered when the server starts. 6 start, 7 /// Event triggered when the server stops. 8 stop, 9 /// Event triggered when a client connects. 10 connect, 11 /// Event triggered when a client disconnects. 12 disconnect, 13 /// Event triggered when data is received. 14 receive, 15 /// Event triggered when an error occurres. 16 error 17 }