diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-06-26 22:07:29 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-06-26 22:07:29 +0200 |
commit | eb75ff430d1f78e129bbfe49d612f241ca418df4 (patch) | |
tree | ca9a786c1df51c1404001555b1c1c9d425d0b614 /src/device.go | |
parent | 9d806d3853c926df75e83966d2c4f832708a1b08 (diff) |
Begin implementation of outbound work queue
Diffstat (limited to 'src/device.go')
-rw-r--r-- | src/device.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device.go b/src/device.go index ce10a63..4b8cda0 100644 --- a/src/device.go +++ b/src/device.go @@ -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 |