Uri Guttman > Stem-0.11 > Stem::Inject

Download:
Stem-0.11.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  0
View/Report Bugs
Source   Latest Release: Stem-0.12

NAME ^

Stem::Inject - Inject a message into a portal via a socket connection

SYNOPSIS ^

  my $return =
      Stem::Inject->inject( to   => 'some_cell',
                            type => 'do_something',
                            port => 10200,
                            host => 'localhost',
                            data => { foo => 1 },
                          );

  # do something with data returned

USAGE ^

This class contains just one method, inject, which can be used to inject a single message into a Stem hub, via a known server portal.

This is very useful if you have a synchronous system which needs to communicate with a Stem system via messages.

METHODS ^

AUTHOR ^

Dave Rolsky <david@stemsystems.com>

syntax highlighting: