This commit is contained in:
xtaci
2018-12-27 15:05:38 +08:00
parent 52ed292bb2
commit 2500c38813
4 changed files with 1 additions and 9 deletions
+1
View File
@@ -8,6 +8,7 @@ import (
"io"
)
// Entropy defines a entropy source
type Entropy interface {
Init()
Fill(nonce []byte)
-1
View File
@@ -33,7 +33,6 @@ func (p *DelayPacket) ts() int32 { return p._ts }
func (p *DelayPacket) setts(ts int32) { p._ts = ts }
type DelayTunnel struct{ *list.List }
type Random *rand.Rand
type LatencySimulator struct {
current int32
lostrate, rttmin, rttmax, nmax int
-6
View File
@@ -677,12 +677,6 @@ type (
rd atomic.Value // read deadline for Accept()
wd atomic.Value
}
// a incoming packet definition
inPacket struct {
from net.Addr
data []byte
}
)
// monitor incoming data for all connections of server
-2
View File
@@ -19,10 +19,8 @@ const portEcho = "127.0.0.1:9999"
const portSink = "127.0.0.1:19999"
const portTinyBufferEcho = "127.0.0.1:29999"
const portListerner = "127.0.0.1:9998"
const salt = "kcptest"
var key = []byte("testkey")
var fec = 4
var pass = pbkdf2.Key(key, []byte(portSink), 4096, 32, sha1.New)
func init() {