++ed by:
JHTHORSEN

1 PAUSE user(s)
1 non-PAUSE user(s).

Jan Henning Thorsen

NAME

Mojo::TFTPd::Connection - A connection class for Mojo::TFTPd

SYNOPSIS

See Mojo::TFTPd

ATTRIBUTES

blocksize

The negotiated blocksize. Default is 512 Byte.

error

Useful to check inside "finish" in Mojo::TFTPd events to see if anything has gone wrong. Holds a string describing the error.

file

The filename the client requested to read or write.

filehandle

This must be set inside the rrq or rrw event or the connection will be dropped.

mode

Either "ascii", "octet" or empty string if unknown.

peerhost

The IP address of the remove client.

peername

Packet address of the remote client.

retries

Number of times "send_data" or "send_ack" can be retried before the connection is dropped. This value comes from "retries" in Mojo::TFTPd.

socket

The UDP handle to send data to.

rfc

Contains extra parameters the client has provided. These parameters are stored in an array ref.

METHODS

send_data

This method is called when the server sends DATA to the client.

receive_ack

This method is called when the client sends ACK to the server.

receive_data

This method is called when the client sends DATA to the server.

send_ack

This method is called when the server sends ACK to the client.

send_error

Used to report error to the client.

AUTHOR

Jan Henning Thorsen - jhthorsen@cpan.org




Hosting generously
sponsored by Bytemark