Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetPeerSetupTimeoutForTest ¶
SetPeerSetupTimeoutForTest overrides the peer-setup timeout for tests. Pass 0 to reset.
Types ¶
type Config ¶
type Config struct {
// IOConfig carries SDP I/O, STUN, QR, and loopback settings.
transfer.IOConfig
// Stream is the file/reader to transmit. Must be seekable (pre-hash rewinds).
Stream io.ReadSeeker
// CompressionLevel is the zstd level (0 disables; 1..22 map to klauspost buckets).
CompressionLevel int
// Connections is the number of parallel data PeerConnections (1..16).
Connections int
}
Config holds sender-side configuration.
type Session ¶
type Session struct {
transfer.SessionBase
// contains filtered or unexported fields
}
Session is a sender session.
func New ¶
func New(file io.ReadSeeker) *Session
New returns a single-PC sender with stdin/stdout SDP and default settings.
func (*Session) Initialize ¶
Initialize creates the PeerConnection and the data channel, then emits the local offer SDP.
Click to show internal directories.
Click to hide internal directories.