send ids only for return future
[scpubgit/Object-Remote.git] / bin / object-remote-node
1 #!/usr/bin/env perl
2
3 use strictures 1;
4 use Object::Remote::Connector::STDIO;
5 use Object::Remote;
6 use CPS::Future;
7
8 my $c = Object::Remote::Connector::STDIO->new->connect;
9
10 $c->register_class_call_handler;
11
12 $c->ready_future->done;
13
14 my $loop = Object::Remote->current_loop;
15
16 my $f = CPS::Future->new;
17
18 $f->on_ready(sub { $loop->want_stop });
19
20 $c->on_close($f);
21
22 print { $c->send_to_fh } "Shere\n";
23
24 $loop->want_run;
25 $loop->run_while_wanted;