add a method to open new Streams to the client

This commit is contained in:
Marten Seemann
2016-12-16 22:35:54 +07:00
parent a8bbe66d5c
commit 3458514744
4 changed files with 15 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ import (
// packetHandler handles packets
type packetHandler interface {
handlePacket(*receivedPacket)
OpenStream(protocol.StreamID) (utils.Stream, error)
run()
Close(error) error
}