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 )

Description

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

Note

This function can not be called statically.

Class Summary Net_Server (Previous) Class Summary Net_Server_Driver (Next)
Last updated: Tue, 02 Jun 2009 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.