Business-OCV
view release on metacpan or search on metacpan
$@ = "could not close connection: $!", return undef
unless $self->{'io'}->close();
$self->{'disconnected'} = 1;
return 1;
}
sub ping
# try and confirm the server connection is alive
{
my $self = shift;
$@ = "not connected", return undef unless $self->{'io'}->connected;
# there isn't an OCV 'noop' command, use a simple stats request
# - result should be a statistics array, or error
return ($self->statistics(SubCode => STATS_PERMANENT));
}
( run in 2.649 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )