1 package Object::Remote::Node;
4 use Object::Remote::Connector::STDIO;
5 use Object::Remote::Logging qw(:log);
10 log_trace { "run() has been invoked on remote node; creating STDIO connector" };
11 my $c = Object::Remote::Connector::STDIO->new->connect;
13 $c->register_class_call_handler;
15 my $loop = Object::Remote->current_loop;
17 $c->on_close->on_ready(sub {
18 log_info { "Node connection with call handler has closed" };
22 print { $c->send_to_fh } "Shere\n";
24 log_debug { "Node is going to start the run loop" };
26 $loop->run_while_wanted;
27 log_debug { "Run loop invocation in node has completed" };