| Next: Net::StarezServer::Games | Previous: Net::StarezServer::DownloadServer | [Table of Contents] |
Net::StarezServer::Files - Manage files from the database for the clients
Net::StarezServer::Files is the module that stores file information.
Files.pm assumes that a table with the name 'files' with at least these elements exists:
See Net::StarezServer::BaseSQLModule for the interface on this file.
This method creates a Ticket ID for the file indicated using TicketID.pm. It wants four arguments being the files' name, the cap in kilobytes, the servers' main alias for Database.pm, and a code reference to call when the generation is complete.
The return coderef will be called with a 'ticketid' element when the generation is complete, or 'error' if there's been an error. (Actually, it just copies the arguments it gets back from Net::StarezServer::TicketID).
Written by Sjors Gielen <dazjorz@starez.org>