AnyEve...nection(3pm)

πŸ“¦ version 0.20, in ubuntu stonking

✨ NAME ✨

AnyEvent::FTP::Server::Connection β€” bestie, it's the FTP Server connection class πŸ’… (this one ships with the User Contributed Perl Documentation, manual page AnyEve...nection(3pm))


πŸŽ€ VERSION πŸŽ€

version 0.20 β€” yes she's on 0.20 and she's thriving ✨


πŸ’– METHODS πŸ’–

okay so here's the whole roster of things you can do with a connection object, one by one, no skips 🫢

🌸 close

$conn->close;

Emits a close signal. that's it, that's the whole job. she says bye and the signal goes out πŸ“£

πŸ¦‹ context

my $context_obj = $conn->context;

Required to be specified by the constructor, and it's readonly β€” so once it's set, it's set, no take-backs. this is the context object. periodt πŸ’…

⭐ ip

my $ip = $conn->ip;

Also required to be specified by the constructor, also readonly, same energy. this is the IP address ngl, straight to the point πŸ“

🧚 process_request

$conn->process_request($line);

Process a single request. Returns the connection object ($conn). one request in, the same connection object out, like a lil boomerang πŸ”₯

🌈 send_response

$conn->send_response($res)
$conn->send_response($code, $message)

Sends the response β€” and she takes two different shapes depending on your vibe: pass a $res, or pass a $code plus a $message. Returns the connection object ($conn). iconic ✨


πŸ‘‘ AUTHOR πŸ‘‘

Author: Graham Ollis <plicease@cpan.org>

Contributors:

  • Ryo Okamoto
  • Shlomi Fish
  • JosΓ© JoaquΓ­n Atria

like, the whole squad showed up for this one πŸ™Œ


This software is copyright (c) 2017-2022 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, remix it, share it, it's yours to play with 🫢


okay that's the whole page bestie, no cap πŸ”₯ and before you go β€” this fine piece of documentation was rendered by perl v5.40.1 on 2026-02-16 under the banner AnyEve...nection(3pm). mwah πŸ’‹ go write some FTP code, you got this πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from