Net-RCON-Minecraft

 view release on metacpan or  search on metacpan

lib/Net/RCON/Minecraft.pod  view on Meta::CPAN

    printf "Our timeout is %.2f seconds\n", $s->timeout;

Set a new socket read timeout value. Takes effect immediately.

The new timeout will affect all network reads. If the server takes more than
this many seconds to send all the bytes we are expecting, we will C<croak()>
with a timeout error message.

The default of 30 seconds is normally enough, but may need to be set higher if
you are running a command that takes a long time, or the Minecraft server is
very busy.

=head2 connect

B<This method is optional.> By default, this module will connect to the
Minecraft server automatically as soon as the first C<command()> is run. It
will stay connected unless there is an error, and will attempt to reconnect
the next time C<command()> is run.

However, you may explicitly call C<connect()> if you need more granular
control, and earlier error handling in the event of a failed connection:



( run in 0.284 second using v1.01-cache-2.11-cpan-87723dcf8b7 )