Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
118
func
(this *TcpConn) Close() {
119
if
atomic.CompareAndSwapUint32(&this.close_flag, 0, 1) == true {
120
this.do_push_write(nil)
121
}
122
}
123
124
func
(this *TcpConn) Destroy() {
125
this.conn.Close()
Callers
3
Run
Method · 0.95
Ping
Method · 0.95
recover
Method · 0.95
Calls
1
do_push_write
Method · 0.95
Tested by
no test coverage detected