Mojo::TFTPd::Connection - A connection class for Mojo::TFTPd
Type of connection rrq or wrq
The negotiated blocksize. Default is 512 Byte.
Useful to check inside "finish" in Mojo::TFTPd events to see if anything has gone wrong. Holds a string describing the error.
The filename the client requested to read or write.
This must be set inside the rrq to report tsize option if client requested
If set inside wrq limits maximum upload Set automatically on WRQ with tsize
Can be used inside finish for uploads to check if reported tsize and received data length match
How long a connection can stay idle before being dropped.
Either "ascii", "octet" or empty string if unknown.
The IP address of the remove client.
Packet address of the remote client.
The UDP handle to send data to.
Contains RFC 2347 options the client has provided. These options are stored in an hash ref.
This method is called when the server sends DATA to the client.
This method is called when the client sends ACK to the server.
This method is called when the client sends DATA to the server.
This method is called when the server sends ACK to the client.
Used to report error to the client.
Used to send RFC 2347 OACK to client Supported options are RFC 2348 blksize - report $self->blocksize RFC 2349 timeout - report $self->timeout RFC 2349 tsize - report $self->filesize if set inside the rrq
Jan Henning Thorsen -