mirror of
https://github.com/go-i2p/go-sam-go.git
synced 2025-07-04 10:16:21 -04:00
30 lines
419 B
Go
30 lines
419 B
Go
![]() |
package stream
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
"time"
|
||
|
|
||
|
"github.com/go-i2p/go-sam-go/common"
|
||
|
"github.com/go-i2p/i2pkeys"
|
||
|
)
|
||
|
|
||
|
type SAM common.SAM
|
||
|
|
||
|
// Represents a streaming session.
|
||
|
type StreamSession struct {
|
||
|
*SAM
|
||
|
Timeout time.Duration
|
||
|
Deadline time.Time
|
||
|
}
|
||
|
|
||
|
type StreamListener struct {
|
||
|
// parent stream session
|
||
|
session *StreamSession
|
||
|
}
|
||
|
|
||
|
type StreamConn struct {
|
||
|
laddr i2pkeys.I2PAddr
|
||
|
raddr i2pkeys.I2PAddr
|
||
|
conn net.Conn
|
||
|
}
|