Enum flep::connection::DataTransfer [] [src]

pub enum DataTransfer {
    None,
    Listening {
        listener: TcpListener,
        token: Token,
    },
    Connecting {
        stream: TcpStream,
        token: Token,
    },
    Connected {
        stream: TcpStream,
        token: Token,
    },
}

The data transfer prototocol (DTP) stream.

Variants

No DTP stream has or is being set up.

We are currently listening for the other end to open a data connection.

Fields of Listening

The port we are listening on.

The token for the listener.

Fields of Connecting

The underlying socket.

The token used to listen for events on the DTP stream.

We are connected.

Fields of Connected

The underlying socket.

The token used to listen for events on the DTP stream.

Methods

impl DataTransfer
[src]

Start listening for a new data transfer on a port.