X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=bin%2Fobject-remote-node;h=652f0786a5b6ad5484ffa76a8ece8657b581b6b6;hp=4f9cac45243893b3117045c050f7b74e06c515af;hb=df8e0ca6a336fb37fd14d40fa345e787bc75b8c2;hpb=8ba4f2e3adb9a1fda64b463b34a4306c9034359a diff --git a/bin/object-remote-node b/bin/object-remote-node index 4f9cac4..652f078 100755 --- a/bin/object-remote-node +++ b/bin/object-remote-node @@ -1,24 +1,6 @@ #!/usr/bin/env perl use strictures 1; -use Object::Remote::Connector::STDIO; -use Object::Remote; -use CPS::Future; +use Object::Remote::Node; -#$Object::Remote::Connection::DEBUG = 1; - -my $c = Object::Remote::Connector::STDIO->new->connect; - -$c->_set_is_ready(1); - -my $loop = Object::Remote->current_loop; - -my $f = CPS::Future->new; - -$f->on_ready(sub { $loop->stop }); - -$c->on_close($f); - -print { $c->send_to_fh } "Shere\n"; - -$loop->run; +Object::Remote::Node->run;