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

Method Close

network/tcp_conn.go:118–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116}
117
118func (this *TcpConn) Close() {
119 if atomic.CompareAndSwapUint32(&this.close_flag, 0, 1) == true {
120 this.do_push_write(nil)
121 }
122}
123
124func (this *TcpConn) Destroy() {
125 this.conn.Close()

Callers 3

RunMethod · 0.95
PingMethod · 0.95
recoverMethod · 0.95

Calls 1

do_push_writeMethod · 0.95

Tested by

no test coverage detected