HTTPServer::__construct PHP Method

__construct() public method

public __construct ( $port = 9699, $address = "127.0.0.1" )
    public function __construct($port = 9699, $address = "127.0.0.1")
    {
        $path = 'tcp://' . $address . ':' . $port;
        $this->server = new JAXLSocketServer($path, array(&$this, 'on_accept'), array(&$this, 'on_request'));
        $this->dispatcher = new HTTPDispatcher();
    }

Usage Example

Example #1
0
 function __construct()
 {
     parent::__construct(array('port' => 8002));
 }
All Usage Examples Of HTTPServer::__construct