IOMux::Service::TCP - TCP (socket) based service
IOMux::Service::TCP is a IOMux::Handler::Service is a IOMux::Handler IOMux::Service::TCP is extended by IOMux::HTTP::Gateway IOMux::HTTP::Server
my $service = IOMux::Service::TCP->new ( # capitalized 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> name IOMux::Handler 'listen tcp $host:$port'
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.
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 "Helpers" in IOMux::Handler::Service.
Inherited, see "Helpers" in IOMux::Handler
This module is part of IOMux distribution version 1.00, built on November 11, 2015. Website: http://perl.overmeer.net/ All modules in this suite: "Any::Daemon", "IOMux", and "IOMux::HTTP".
Please post questions or ideas to perl@overmeer.net
Copyrights 2011-2015 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
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.