Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.419 kb
#!/usr/bin/env perl
use strict;
use warnings;
use lib 'gen-perl';
use Thrift;
use Thrift::BinaryProtocol;
use Thrift::Socket;
use Hello;
my $transport = Thrift::Socket->new('localhost', 9090);
my $client = HelloClient->new( Thrift::BinaryProtocol->new($transport) );
eval {
$transport->open();
printf "%s\n", $client->hello("naoya");
$transport->close();
};
if (my $e = $@) {
warn $e->{message};
}
Jump to Line
Something went wrong with that request. Please try again.