NAME

App::Manoc::Netwalker::Control - Netwalker control interface

VERSION

version 2.99.2

DESCRIPTION

This class implements a control server for Netwalker. It is based on a simple line oriented protocol.

ATTRIBUTES

config

Netwalker configuration. Required.

The value in config->control_port can be a port (TCP socket) or a path (UNIX socket)

poller

Reference to poller Workers object. Required.

poller

Reference to discovery workers object. Required.

server

A POE::Wheel::ListenAccept creating during _start.

session

POE session. Required.

clients

Hash wheel-id to wheel, used by callbacks.

METHODS

on_client_accept

Callback on new client connection.

on_server_error( $operation, $errnum, $errstr )

Callback on server error

on_client_input( $input, $wheel_id )

Callback for client input. Parses input line and call the corresponding command_<name> callback.

on_client_error

command_status

Manages the STATUS command.

command_enqueue

Manages the ENQUEUE DEVICE|SERVER <id> command.

command_quit

Manages the QUIT command closing the client connection.

FUNCTIONS

MANOC_CONSOLE_HELLO

Return the welcome message

AUTHORS

  • Gabriele Mambrini <gmambro@cpan.org>

  • Enrico Liguori

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Gabriele Mambrini.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.