IoServer

Purpose of this Component

The IoServer should be the base of your application. This is the core of the events driven from client actions. It handles receiving new connections, reading/writing to those connections, closing the connections, and handles all errors from your application.

##Events triggered by this Component

Configuration methods

##Functions callable on Connections

Wraps other components nicely

Your app class (for testing, or making a telnet application) implementing IoServerInterface

Wrapped by other components nicely.

Typically, none. This should be the base of your application as it handles the direct communication and transport with clients.

Usage

<?php
// Your shell script
use Reamp\Server\IoServer;

$server = IoServer::factory(new MyApp, 8080); // Run your app on port 8080
$server->run();