NAME

IO::Mux::Handler::Service - any mux service

INHERITANCE

IO::Mux::Handler::Service
  is a IO::Mux::Handler

IO::Mux::Handler::Service is extended by
  IO::Mux::Service::TCP

SYNOPSIS

# only use extensions

DESCRIPTION

This base-class defines what interface services provide. A service is (in the general case) a socket which is listening to incoming connections)

METHODS

Constructors

IO::Mux::Handler::Service->new(OPTIONS) See "Constructors" in IO::Mux::Handler
IO::Mux::Handler::Service->open(MODE, WHAT, OPTIONS) See "Constructors" in IO::Mux::Handler

Accessors

$obj->fh See "Accessors" in IO::Mux::Handler
$obj->fileno See "Accessors" in IO::Mux::Handler
$obj->mux See "Accessors" in IO::Mux::Handler
$obj->name See "Accessors" in IO::Mux::Handler
$obj->usesSSL See "Accessors" in IO::Mux::Handler

User interface

Connection

$obj->close([CALLBACK]) See "Connection" in IO::Mux::Handler
$obj->timeout([TIMEOUT]) See "Connection" in IO::Mux::Handler

Multiplexer

Connection

$obj->mux_init(MUX, [HANDLER]) See "Connection" in IO::Mux::Handler
$obj->mux_remove See "Connection" in IO::Mux::Handler
$obj->mux_timeout See "Connection" in IO::Mux::Handler

Reading

$obj->mux_except_flagged(FILENO) See "Reading" in IO::Mux::Handler
$obj->mux_read_flagged(FILENO) See "Reading" in IO::Mux::Handler

Writing

$obj->mux_write_flagged(FILENO) See "Writing" in IO::Mux::Handler

Service

$obj->mux_connection(CLIENT)

A new connection has arrived on the file-handle (socket) where we are listening on. The connection has been accepted and the filehandle of the new CLIENT has been added to the MUX. You may wish to send an initial string.

Helpers

$obj->extractSocket(HASH)
IO::Mux::Handler::Service->extractSocket(HASH) See "Helpers" in IO::Mux::Handler
$obj->fdset(STATE, READ, WRITE, ERROR) See "Helpers" in IO::Mux::Handler
$obj->show See "Helpers" in IO::Mux::Handler

SEE ALSO

This module is part of IO-Mux distribution version 0.11, built on January 26, 2011. Website: http://perl.overmeer.net/ All modules in this suite: "Any::Daemon", "IO::Mux", and "IO::Mux::HTTP".

Please post questions or ideas to perl@overmeer.net

LICENSE

Copyrights 2011 by Mark Overmeer. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html