Documentation ¶
Overview ¶
Package datachannel handles the data sink between the FTP Server and the client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataChanneler ¶
type DataChanneler interface { io.Closer Port() int ToPASVStringPort() string Open() error Sink(f SinkFunction) IsClosed() bool Encrypted() bool SetEncrypted(encrypt bool) }
DataChanneler is the interface exposed to handle PASV connections and data handling
func New ¶
func New(pa portassigner.PortAssigner, cert *tls.Certificate, encrypted bool) (DataChanneler, error)
New initializes a new DataChanneler You must call Open before calling the Sink method or the socket won't be open (nor accepting connections)
Click to show internal directories.
Click to hide internal directories.