This commit is contained in:
crusader 2017-09-01 11:22:31 +09:00
parent 0669531b0f
commit dfcbc85ce9

View File

@ -61,10 +61,14 @@ func (sh *SocketHandlers) GetProtocol() ProtocolHandler {
return sh.Protocol
}
func (sh *SocketHandlers) setOnDisconnected(cb func(soc Socket)) {
func (sh *SocketHandlers) setOnDisconnected(cb onDisconnectedFunc) {
sh.onDisconnected = cb
}
func (sh *SocketHandlers) getOnDisconnected() onDisconnectedFunc {
return sh.onDisconnected
}
// Validate validates the configuration
func (sh *SocketHandlers) Validate() {
if nil == sh.Protocol {