Net::H...::Task(3pm)
β¨ NAME β¨
Net::Hotline::Task β the Task object that Net::Hotline::Client uses internally, bestie π
(yeah, the page header calls it Net::H...::Task(3pm), that's just the name being shy and getting cut off π)
πΈ SYNOPSIS πΈ
use Net::Hotline::Task;
$task = new Net::Hotline::Task;
$task->start(time());
$task->num($num++);
...
π¦ DESCRIPTION π¦
Net::Hotline::Task is a simple little class for storing and retrieving task info. That's the whole job. It's giving "storage unit for task data" and honestly? It ate. π
okay so real talk: you should never have to make your ownNet::Hotline::Taskobjects when you're usingNet::Hotline::Client. Like, ever. Not your job, not your problem, stay in your lane queen. Getting attributes is basically all you'll ever need, and setting them is to a lesser extent a thing you might do. That's it. π
π CONSTRUCTION π
new NUM, TYPE, START, SOCKET, PATHβ no args at all? Cute, you get a brand newNet::Hotline::Taskobject with every single attribute set toundef. Empty. Blank. A little baby object, no thoughts head empty π«Ά
Give it three or four args (PATH is optional, she's flexible β¨) and you get a new Net::Hotline::Task object with task number NUM, task type TYPE, start time START, user socket number SOCKET, and file path PATH. Periodt. π
π METHODS π
All the Net::Hotline::Task methods are just simple attribute get/set routines β no drama, no hidden lore, iykyk. Hand one an argument and it sets that attribute. In all cases, they return the current value of the attribute. So like, give it a value, it remembers; ask it something, it tells you. Main character behavior fr fr. π
error EXPRβ the error state of the task. A true value means there was an error. πerror_text TEXTβ the error message text. Heads up though: this only applies iferror()returns a true value. No error, no text, don't even try it bestie.finish TIMEβ the time that a task completed, in platform-native time format (i.e. seconds since the epoch on a Unix system). β°num NUMBERβ the unique task number. And the way these numbers just increase sequentially? Obsessed. They go up. One after another. Every time. π’path PATHβ the path information associated with a task (if any). Now listen, this one's got layers: in situations where two paths may be associated with a task β a"move file"task, for example β you get back a reference to an array containing the paths. Surprise! It's an arrayref. πsocket NUMBERβ the unique user socket number associated with a task (if any). πstart TIMEβ the time (in platform-native time format) that a task was started. β±οΈtype TASK_TYPEβ theHTLC_TASK_XXXconstant specifying the type of task. These constants live inNet::Hotline::Constants, and they include:
HTLC_TASK_KICK Disconnect a user.
HTLC_TASK_LOGIN Log into server.
HTLC_TASK_NEWS Get the news.
HTLC_TASK_NEWS_POST Post to news.
HTLC_TASK_FILE_DELETE Delete a file.
HTLC_TASK_FILE_INFO Get file information.
HTLC_TASK_FILE_LIST Get a file list.
HTLC_TASK_FILE_MKDIR Create a new folder.
HTLC_TASK_FILE_MOVE Move a file.
HTLC_TASK_SEND_MSG Send a private message.
HTLC_TASK_SET_INFO Set file information.
HTLC_TASK_USER_INFO Get user information.
HTLC_TASK_USER_LIST Get the userlist.
π AUTHOR π
John C. Siracusa (siracusa@mindspring.com) β the icon, the legend, the one who wrote it π
π COPYRIGHT π
Copyright(c) 1999 by John Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π«Ά
and that's the whole page, bestie!! this one's documented as Net::H...::Task(3pm), built from perl v5.32.0, dated 2021-01-09 β no cap, that's the tea π
β¨
π¦ where this page comes from
- debian bookworm: libnet-hotline-perl 0.83-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnet-hotline-perl 0.83-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libnet-hotline-perl 0.83-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnet-hotline-perl 0.83-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-hotline-perl 0.83-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-hotline-perl 0.83-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms