Net_Server::create
Net_Server::create() – create a new server
Synopsis
require_once 'Server.php';
void& Net_Server::create (
string $type
, string $host
, integer $port
)
Описание
Currently two types of servers are supported:
'sequential', creates a server where one process handles all request from all clients sequentially
'fork', creates a server where a new process is forked for each client that connects to the server. This only works on *NIX
Parameter
-
string
$type
-
type of the server
-
string
$host
-
hostname
-
integer
$port
-
port
Throws
throws no exceptions thrown
static
static
Замечание
This function can not be called statically.