The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Clio::Client - Base abstract class for Clio::Client::* implementations

VERSION

version 0.02

DESCRIPTION

Base abstract class for Clio::Client::* implementations.

Can be wrapped with InputFilters and OutputFilters defined in <Server/Client> block.

Consumes the Clio::Role::HasManager.

ATTRIBUTES

id

Required read-only client identifier.

METHODS

handshake

Method called once per new client. No-op in base class.

write

    $client->write( $msg );

Abstract method used to write to client.

close

    $client->close();

Abstract method used to close connection with client.

Not to be used directly, see "disconnect".

attach_to_process

    $client->attach_to_process( $process );

Links a process with a client.

disconnect

    $client->disconnect();

Removes link to connected process and closes the connection.

AUTHOR

Alex J. G. Burzyński <ajgb@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Alex J. G. Burzyński <ajgb@cpan.org>.

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