refactor: extract Forwarder

This commit is contained in:
Matthias Radestock committed 2014-08-27 23:31:37 +01:00
1 parent 4710a59ac8
commit eb5d6f0d89
2 files changed
+148 -119

No files matched your search

+11
View File
@@ -85,6 +85,17 @@ type ConnectionInteraction struct {
payload interface{}
}
type Forwarder struct {
conn *LocalConnection
ch <-chan *ForwardedFrame
stop <-chan interface{}
pmtuVerifyTick <-chan time.Time
enc Encryptor
udpSender UDPSender
maxPayload int
effectivePMTU int
}
type UDPPacket struct {
Name PeerName
Packet []byte