php-ipc/src/Interop/Channel/ChannelInterface.php

29 lines
454 B
PHP

<?php
namespace NoccyLabs\Ipc\Interop\Channel;
interface ChannelInterface
{
/**
* Check if the channel is open
*
* @return boolean
*/
public function isOpen():bool;
/**
* Receive (and unserialize) a frame of data.
*
* @return mixed
*/
public function receive();
/**
* Send a frame of data
*
* @param mixed $data
* @return void
*/
public function send($data);
}