NewTable returns an empty Table.
()
| 106 | |
| 107 | // NewTable returns an empty Table. |
| 108 | func 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. |
| 113 | func (t *Table) Add(c *Connection) bool { |
no outgoing calls