The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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