server/client/socket_handler.go
crusader 48ecd0a6fa ing
2017-11-30 18:13:58 +09:00

18 lines
331 B
Go

package client
import "net"
type SocketHandler interface {
OnConnect(socketContext SocketContext, conn net.Conn)
OnDisconnect(soc Socket)
// Validate is check handler value
// If you override ths method, must call
//
// func (sh *SocketHandlers) Validate() {
// sh.SocketHandlers.Validate()
// ...
// }
Validate()
}