work in progress, establishes TCP connections and gets through metadata handshake using the link code, but doesn't seem to send traffic yet (no switch peers are created)

This commit is contained in:
Arceliar 2019-01-21 23:08:50 -06:00
parent 5a4d6481dd
commit 137212d8cf
4 changed files with 137 additions and 25 deletions

View file

@ -12,10 +12,8 @@ import (
var _ = linkInterfaceMsgIO(&stream{})
type stream struct {
rwc io.ReadWriteCloser
inputBuffer []byte // Incoming packet stream
didFirstSend bool // Used for metadata exchange
didFirstRecv bool // Used for metadata exchange
rwc io.ReadWriteCloser
inputBuffer []byte // Incoming packet stream
// TODO remove the rest, it shouldn't matter in the long run
handlePacket func([]byte)
}