privatize packetHandler

ref #60
This commit is contained in:
Lucas Clemente
2016-05-15 15:32:26 +02:00
parent 5fab9b5326
commit b558bb8a75
3 changed files with 8 additions and 8 deletions

View File

@@ -76,7 +76,7 @@ type Session struct {
}
// NewSession makes a new session
func NewSession(conn connection, v protocol.VersionNumber, connectionID protocol.ConnectionID, sCfg *handshake.ServerConfig, streamCallback StreamCallback, closeCallback CloseCallback) PacketHandler {
func NewSession(conn connection, v protocol.VersionNumber, connectionID protocol.ConnectionID, sCfg *handshake.ServerConfig, streamCallback StreamCallback, closeCallback CloseCallback) packetHandler {
stopWaitingManager := ackhandler.NewStopWaitingManager()
session := &Session{
connectionID: connectionID,