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

Function OnConnectionAdd

examples/zinx_dynamic_bind/server/server.go:12–14  ·  view source on GitHub ↗
(conn ziface.IConnection)

Source from the content-addressed store, hash-verified

10)
11
12func OnConnectionAdd(conn ziface.IConnection) {
13 zlog.Debug("OnConnectionAdd:", conn.GetConnection().RemoteAddr())
14}
15
16func OnConnectionLost(conn ziface.IConnection) {
17 zlog.Debug("OnConnectionLost:", conn.GetConnection().RemoteAddr())

Callers

nothing calls this directly

Calls 3

DebugFunction · 0.92
RemoteAddrMethod · 0.65
GetConnectionMethod · 0.65

Tested by

no test coverage detected