gopenfusion/internal/protocol/event.go

16 lines
181 B
Go
Raw Normal View History

2023-06-25 06:51:21 +00:00
package protocol
import "bytes"
const (
EVENT_CLIENT_DISCONNECT = iota
EVENT_CLIENT_PACKET
)
type Event struct {
Type int
Peer *CNPeer
Pkt *bytes.Buffer
PktID uint32
}