mirror of
https://github.com/go-i2p/go-sam-go.git
synced 2025-06-16 05:44:42 -04:00
12 lines
331 B
Go
12 lines
331 B
Go
package stream
|
|
|
|
import "github.com/sirupsen/logrus"
|
|
|
|
// create a new stream listener to accept inbound connections
|
|
func (s *StreamSession) Listen() (*StreamListener, error) {
|
|
log.WithFields(logrus.Fields{"id": s.SAM().ID(), "laddr": s.Addr()}).Debug("Creating new StreamListener")
|
|
return &StreamListener{
|
|
session: s,
|
|
}, nil
|
|
}
|