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

Method RemoteAddr

ziface/iconnection.go:35–35  ·  view source on GitHub ↗

Get Worker ID(获取workerid)

()

Source from the content-addressed store, hash-verified

33 GetMsgHandler() IMsgHandle // Get the message handler (获取消息处理器)
34 GetWorkerID() uint32 // Get Worker ID(获取workerid)
35 RemoteAddr() net.Addr // Get the remote address information of the connection (获取连接远程地址信息)
36 LocalAddr() net.Addr // Get the local address information of the connection (获取连接本地地址信息)
37 LocalAddrString() string // Get the local address information of the connection as a string
38 RemoteAddrString() string // Get the remote address information of the connection as a string

Callers 15

RestartMethod · 0.95
HandleMethod · 0.65
HeatBeatDefaultHandleFunction · 0.65
makeDefaultMsgFunction · 0.65
notAliveDefaultFuncFunction · 0.65
newKcpServerConnFunction · 0.65
newKcpClientConnFunction · 0.65
RemoteAddrMethod · 0.65
newWebsocketConnFunction · 0.65
newWsClientConnFunction · 0.65
RemoteAddrMethod · 0.65
newServerConnFunction · 0.65

Implementers 3

KcpConnectionznet/kcp_connection.go
WsConnectionznet/ws_connection.go
Connectionznet/connection.go

Calls

no outgoing calls

Tested by

no test coverage detected