1syntax = "proto2"; 2import "session_event.proto"; 3 4message Event_ConnectionClosed { 5 extend SessionEvent { 6 optional Event_ConnectionClosed ext = 1002; 7 } 8 enum CloseReason { 9 OTHER = 1; 10 SERVER_SHUTDOWN = 2; 11 TOO_MANY_CONNECTIONS = 3; 12 BANNED = 4; 13 USERNAMEINVALID = 5; 14 USER_LIMIT_REACHED = 6; 15 DEMOTED = 7; 16 LOGGEDINELSEWERE = 8; 17 } 18 optional CloseReason reason = 1; 19 optional string reason_str = 2; 20 optional uint32 end_time = 3; 21} 22