}
sub connect {
- my ($class, $to) = @_;
- use_module('Object::Remote::Connection')->maybe::start::new_from_spec($to);
+ my ($class, $to, @args) = @_;
+ use_module('Object::Remote::Connection')->maybe::start::new_from_spec($to, @args);
}
sub current_loop {
}
sub new_from_spec {
- my ($class, $spec) = @_;
+ my ($class, $spec, @args) = @_;
return $spec if blessed $spec;
- my $conn = $class->conn_from_spec($spec);
+ my $conn = $class->conn_from_spec($spec, @args);
die "Couldn't figure out what to do with ${spec}"
unless defined $conn;
$SIG{ALRM} = sub { fail("Watchdog killed remote process in time"); die "test failed" };
-my $conn = Object::Remote::Connection->conn_from_spec("-", watchdog_timeout => 1)->connect;
+my $conn = Object::Remote->connect("-", watchdog_timeout => 1);
my $remote = HangClass->new::on($conn);