MCPcopy Create free account
hub / github.com/SamNet-dev/snix / NewTable

Function NewTable

core/conntrack/connection.go:108–110  ·  view source on GitHub ↗

NewTable returns an empty Table.

()

Source from the content-addressed store, hash-verified

106
107// NewTable returns an empty Table.
108func NewTable() *Table {
109 return &Table{m: make(map[Tuple]*Connection)}
110}
111
112// Add registers c. Returns false if an entry for the same tuple already exists.
113func (t *Table) Add(c *Connection) bool {

Callers 2

NewFunction · 0.92
TestTableAddGetRemoveFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestTableAddGetRemoveFunction · 0.68