27 lines
420 B
Go
27 lines
420 B
Go
|
package container
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
|
||
|
csc "git.loafle.net/commons_go/server/client"
|
||
|
)
|
||
|
|
||
|
type SocketHandlers struct {
|
||
|
csc.SocketHandler
|
||
|
}
|
||
|
|
||
|
func (sh *SocketHandlers) OnConnect(socketContext csc.SocketContext, conn net.Conn) {
|
||
|
// no op
|
||
|
}
|
||
|
|
||
|
func (sh *SocketHandlers) OnDisconnect(soc csc.Socket) {
|
||
|
// no op
|
||
|
}
|
||
|
|
||
|
func (sh *SocketHandlers) Validate() {
|
||
|
}
|
||
|
|
||
|
func NewSocketHandler() csc.SocketHandler {
|
||
|
return &SocketHandlers{}
|
||
|
}
|