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

Method Start

znet/client.go:228–236  ·  view source on GitHub ↗

Start starts the client, sends requests and establishes a connection. (启动客户端,发送请求且建立连接)

()

Source from the content-addressed store, hash-verified

226// Start starts the client, sends requests and establishes a connection.
227// (启动客户端,发送请求且建立连接)
228func (c *Client) Start() {
229
230 // Add the decoder to the interceptor list (将解码器添加到拦截器)
231 if c.decoder != nil {
232 c.msgHandler.AddInterceptor(c.decoder)
233 }
234
235 c.Restart()
236}
237
238// StartHeartBeat starts heartbeat detection with a fixed time interval.
239// interval: the time interval between each heartbeat message.

Callers 14

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
mainFunction · 0.95
mainFunction · 0.95

Calls 2

RestartMethod · 0.95
AddInterceptorMethod · 0.65

Tested by

no test coverage detected