Asyncore
Static Public Member Functions | List of all members
Asyncore\Master Class Reference

Static Public Member Functions

static init (callable $message_handler)
 
static send ($data)
 

Detailed Description

The class used by worker scripts to interact with their "master."

See also
Worker

Member Function Documentation

◆ init()

static Asyncore\Master::init ( callable  $message_handler)
static

Initiates the worker script and registers a message handler.

Parameters
callable$message_handlerThe function to be called when the master sends a message.
Returns
void

◆ send()

static Asyncore\Master::send (   $data)
static

Sends an object to the master.

Parameters
$data
Returns
void