MCPcopy Create free account
hub / github.com/Cyinx/einx / Run

Method Run

network/tcp_conn.go:128–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128func (this *TcpConn) Run() {
129 defer this.recover()
130
131 go func() {
132 defer this.recover()
133 if this.Write() == false {
134 this.Close()
135 this.Destroy()
136 }
137 }()
138
139 if this.Recv() == false {
140 this.Close()
141 }
142}
143
144func (this *TcpConn) BeginPing() {
145 atomic.StoreInt64(&this.last_ping_tick, GetNowTick())

Callers

nothing calls this directly

Calls 5

recoverMethod · 0.95
CloseMethod · 0.95
DestroyMethod · 0.95
WriteMethod · 0.80
RecvMethod · 0.80

Tested by

no test coverage detected