Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// IOConfig carries SDP I/O, STUN, QR, and loopback settings.
transfer.IOConfig
// Stream is the file the receiver writes into.
Stream *os.File
// Path is an optional filesystem path used for cleanup-on-failure.
// Empty disables removal.
Path string
}
Config holds receiver-side configuration.
type Session ¶
type Session struct {
transfer.SessionBase
// contains filtered or unexported fields
}
Session is a receiver session.
func (*Session) Initialize ¶
Initialize creates the PC, registers the data-channel handler, reads the offer, and emits the answer. ctx bounds the OnFrames goroutines.
Click to show internal directories.
Click to hide internal directories.