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

Method isClosed

znet/kcp_connection.go:599–601  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

597}
598
599func (c *KcpConnection) isClosed() bool {
600 return atomic.LoadInt32(&c.closed) != 0
601}
602
603func (c *KcpConnection) setClose() bool {
604 return atomic.CompareAndSwapInt32(&c.closed, 0, 1)

Callers 8

SendMethod · 0.95
SendToQueueMethod · 0.95
SendMsgMethod · 0.95
SendBuffMsgMethod · 0.95
finalizerMethod · 0.95
IsAliveMethod · 0.95
AddCloseCallbackMethod · 0.95
RemoveCloseCallbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected