1 package Object::Remote::Node;
4 use Object::Remote::Connector::STDIO;
5 use Object::Remote::Logging qw(:log :dlog);
10 log_trace { "run() has been invoked on remote node" };
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 Dlog_trace { "Node is sending 'Shere' to $_" } $c->send_to_fh;
23 print { $c->send_to_fh } "Shere\n";
25 log_debug { "Node is going to start the run loop" };
27 $loop->run_while_wanted;
28 log_debug { "Run loop invocation in node has completed" };