write PublicHeaders for packets sent as a client

fixes #346
This commit is contained in:
Marten Seemann
2016-11-07 09:19:08 +07:00
parent ce330b94b5
commit cc2d966d84
6 changed files with 132 additions and 64 deletions

10
protocol/perspective.go Normal file
View File

@@ -0,0 +1,10 @@
package protocol
// Perspective determines if we're acting as a server or a client
type Perspective int
// the perspectives
const (
PerspectiveServer Perspective = 1
PerspectiveClient Perspective = 2
)