NAME

RPC::Switch::Client::Tiny::Netstring - send and receive atomic netstring messages

SYNOPSIS

use RPC::Switch::Client::Tiny::Netstring;

socketpair(my $out, my $in, AF_UNIX, SOCK_STREAM, PF_UNSPEC) or die "socketpair: $!";

my $msg = 'ping';
my $res = netstring_write($out, $msg);
my $req = eval { netstring_read($in) };

AUTHORS

Barnim Dzwillo @ Strato AG