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

Interface IConnManager

ziface/iconnmanager.go:7–18  ·  view source on GitHub ↗

IConnManager Connection Management Abstract Layer

Source from the content-addressed store, hash-verified

5
6// IConnManager Connection Management Abstract Layer
7type IConnManager interface {
8 Add(IConnection) // Add connection
9 Remove(IConnection) // Remove connection
10 Get(uint64) (IConnection, error) // Get a connection by ConnID
11 Get2(string) (IConnection, error) // Get a connection by string ConnID
12 Len() int // Get current number of connections
13 ClearConn() // Remove and stop all connections
14 GetAllConnID() []uint64 // Get all connection IDs
15 GetAllConnIdStr() []string // Get all string connection IDs
16 Range(func(uint64, IConnection, interface{}) error, interface{}) error // Traverse all connections
17 Range2(func(string, IConnection, interface{}) error, interface{}) error // Traverse all connections 2
18}

Callers 23

mainFunction · 0.65
AddPIDToGrIDMethod · 0.65
AddToGrIDByPosMethod · 0.65
snapshotFunction · 0.65
fanInFunction · 0.65
KeysMethod · 0.65
newKcpServerConnFunction · 0.65
RemovePIDFromGrIDMethod · 0.65
RemoveFromGrIDByPosMethod · 0.65
rotateMethod · 0.65
deleteMethod · 0.65

Implementers 1

ConnManagerznet/connmanager.go

Calls

no outgoing calls

Tested by

no test coverage detected