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

Method StartConn

znet/server.go:224–236  ·  view source on GitHub ↗
(conn ziface.IConnection)

Source from the content-addressed store, hash-verified

222}
223
224func (s *Server) StartConn(conn ziface.IConnection) {
225 // HeartBeat check
226 if s.hc != nil {
227 // Clone a heart-beat checker from the server side
228 heartBeatChecker := s.hc.Clone()
229
230 // Bind current connection
231 heartBeatChecker.BindConn(conn)
232 }
233
234 // Start processing business for the current connection
235 conn.Start()
236}
237
238func (s *Server) ListenTcpConn() {
239 zlog.Ins().InfoF("[START] TCP Server name: %s,listener at IP: %s, Port %d is starting", s.Name, s.IP, s.Port)

Callers 3

ListenTcpConnMethod · 0.95
ListenWebsocketConnMethod · 0.95
ListenKcpConnMethod · 0.95

Calls 3

CloneMethod · 0.65
BindConnMethod · 0.65
StartMethod · 0.65

Tested by

no test coverage detected