MCPcopy
hub / github.com/aceld/zinx / SetOnConnStart

Method SetOnConnStart

znet/server.go:512–514  ·  view source on GitHub ↗
(hookFunc func(ziface.IConnection))

Source from the content-addressed store, hash-verified

510}
511
512func (s *Server) SetOnConnStart(hookFunc func(ziface.IConnection)) {
513 s.onConnStart = hookFunc
514}
515
516func (s *Server) SetOnConnStop(hookFunc func(ziface.IConnection)) {
517 s.onConnStop = hookFunc

Callers 12

mainFunction · 0.95
TestServerFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestServerFunction · 0.76