NAME
Alien::Taco::Transport - Taco Perl transport module
DESCRIPTION
This package implements the communication between Taco clients and servers.
METHODS
- new(in => $input, out => $output)
-
Construct a new object. This stores the given input and output file handles and instantiates a JSON processor object.
- read()
-
Attempt to read a message from the input filehandle. Returns the decoded message as a data structure or undef if nothing was read.
- write(\%message)
-
Encode the message and write it to the output filehandle.