NAME

IPC::Manager::Client::AtomicPipe - Use FIFO pipes for message transfers.

DESCRIPTION

Each client has a FIFO pipe, Atomic::Pipe is used to allow multi-writer, single-reader use of the pipe.

SYNOPSIS

use IPC::Manager qw/ipcm_spawn ipcm_connect/;

my $spawn = ipcm_spawn(protocol => 'AtomicPipe');

my $con1 = $spawn->connect('con1');
my $con2 = ipcm_connect(con2, $spawn->info);

$con1->send_message(con1 => {'hello' => 'con2'});

my @messages = $con2->get_messages;

CONSTRUCTOR PARAMETERS

permissions => $octal

File permission bits used when creating the FIFO. Defaults to 0700.

METHODS

See IPC::Manager::Client and IPC::Manager::Base::FS for inherited methods.

$con->pre_suspend_hook

Before suspending, drains any messages still buffered in the pipe and writes them to the resume file so they are not lost across the suspend/reconnect cycle.

SOURCE

The source code repository for IPC::Manager can be found at https://github.com/exodist/IPC-Manager.

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

COPYRIGHT

Copyright Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See https://dev.perl.org/licenses/