Jan Henning Thorsen > Mojo-TFTPd-0.0203 > Mojo::TFTPd::Connection

Download:
Mojo-TFTPd-0.0203.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

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

syntax highlighting: