added the CONN_ERROR event t ype
This commit is contained in:
@ -67,6 +67,10 @@ func MakeConnDescPacket(token string) *Packet {
|
||||
return &Packet{Kind: PACKET_KIND_CONN_DESC,U: &Packet_Conn{Conn: &ConnDesc{Token: token}}}
|
||||
}
|
||||
|
||||
func MakeConnNoticePacket(msg string) *Packet {
|
||||
return &Packet{Kind: PACKET_KIND_CONN_NOTICE, U: &Packet_Notice{Notice: &ConnNotice{Text: msg}}}
|
||||
func MakeConnErrorPacket(error_id uint32, msg string) *Packet {
|
||||
return &Packet{Kind: PACKET_KIND_CONN_ERROR, U: &Packet_ConnErr{ConnErr: &ConnError{ErrorId: error_id, Text: msg}}}
|
||||
}
|
||||
|
||||
func MakeConnNoticePacket(msg string) *Packet {
|
||||
return &Packet{Kind: PACKET_KIND_CONN_NOTICE, U: &Packet_ConnNoti{ConnNoti: &ConnNotice{Text: msg}}}
|
||||
}
|
||||
|
Reference in New Issue
Block a user