718 |
$self->{pxport} = $port; |
$self->{pxport} = $port; |
719 |
} |
} |
720 |
|
|
721 |
|
=head2 set_timeout |
722 |
|
|
723 |
|
Specify timeout of connection in seconds |
724 |
|
|
725 |
|
$node->set_timeout( 15 ); |
726 |
|
|
727 |
|
=cut |
728 |
|
|
729 |
|
sub set_timeout { |
730 |
|
my $self = shift; |
731 |
|
my $sec = shift; |
732 |
|
croak "timeout must be number" unless ($sec =~ m/^\d+$/); |
733 |
|
$self->{timeout} = $sec; |
734 |
|
} |
735 |
|
|
736 |
|
=head2 set_auth |
737 |
|
|
738 |
|
Specify name and password for authentication to node server. |
739 |
|
|
740 |
|
$node->set_auth('clint','eastwood'); |
741 |
|
|
742 |
|
=cut |
743 |
|
|
744 |
|
sub set_auth { |
745 |
|
my $self = shift; |
746 |
|
my ($login,$passwd) = @_; |
747 |
|
$self->{auth} = "$login:$passwd"; |
748 |
|
} |
749 |
|
|
750 |
package Search::Estraier::Master; |
package Search::Estraier::Master; |
751 |
|
|
752 |
use Carp; |
use Carp; |