Begin implementation of outbound work queue
This commit is contained in:
parent
9d806d3853
commit
eb75ff430d
6 changed files with 181 additions and 84 deletions
|
|
@ -2,11 +2,14 @@ package main
|
|||
|
||||
import (
|
||||
"log"
|
||||
"net"
|
||||
"sync"
|
||||
)
|
||||
|
||||
type Device struct {
|
||||
mtu int
|
||||
source *net.UDPAddr // UDP source address
|
||||
conn *net.UDPConn // UDP "connection"
|
||||
mutex sync.RWMutex
|
||||
peers map[NoisePublicKey]*Peer
|
||||
indices IndexTable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue