IOMux::Service::TCP - TCP (socket) based service
IOMux::Service::TCP is an IOMux::Handler::Service is an IOMux::Handler
my $service = IOMux::Service::TCP->new ( # capitalized params are passed to the socket constructor Host => 'localhost:8080' , Listen => 3 # object to initialize when new connection arrives , conn_type => $conn_handler_class # extends IOMux::Net::TCP , conn_opts => \@conn_handler_init_params );
Accept TCP connections. When a connection arrives, it will get handled by a new object which gets added to the multiplexer as well.
Extends "DESCRIPTION" in IOMux::Handler::Service.
Extends "METHODS" in IOMux::Handler::Service.
Extends "Constructors" in IOMux::Handler::Service.
-Option --Defined in --Default conn_opts [] conn_type <required> fh IOMux::Handler <required> hostname <sockhost:sockport> name IOMux::Handler 'listen tcp $host:$port' socket <created from capitalized parameters>
Pass some extra options when objects of conn_type are created, passed as list of pairs.
conn_type
The CLASS (package name) of client to be created for each new contact. This CLASS must extend IOMux::Net::TCP. You may also provide a CODE reference which will be called with the socket leading to the client.
How this socket gan be addressed from remote, for instance as virtual host for HTTP.
Inherited, see "Constructors" in IOMux::Handler
Extends "Accessors" in IOMux::Handler::Service.
Inherited, see "Accessors" in IOMux::Handler
Extends "User interface" in IOMux::Handler::Service.
Extends "Multiplexer" in IOMux::Handler::Service.
Extends "Connection" in IOMux::Handler::Service.
Inherited, see "Connection" in IOMux::Handler
Extends "Reading" in IOMux::Handler::Service.
Inherited, see "Reading" in IOMux::Handler
Extends "Writing" in IOMux::Handler::Service.
Inherited, see "Writing" in IOMux::Handler
Extends "Service" in IOMux::Handler::Service.
Inherited, see "Service" in IOMux::Handler::Service
Extends "Helpers" in IOMux::Handler::Service.
Inherited, see "Helpers" in IOMux::Handler
This module is part of IOMux distribution version 1.01, built on January 15, 2020. Website: http://perl.overmeer.net/CPAN
Copyrights 2011-2020 by [Mark Overmeer <markov@cpan.org>]. 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://dev.perl.org/licenses/
To install IOMux, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IOMux
CPAN shell
perl -MCPAN -e shell install IOMux
For more information on module installation, please visit the detailed CPAN module installation guide.