Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 419 Bytes
#!/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 {
printf "%s\n", $client->hello("naoya");
if (my $e = $@) {
warn $e->{message};
Something went wrong with that request. Please try again.