Your browser must have JavaScript enabled in order to view this page.
 >  >
 
Welcome Guest#1794 Login/register    Go to Bottom
Go to Top

Class: DpServer

SOURCE LOCATION:  /lib/dpserver.php

Class Overview

A DutchPIPE server to answer normal and AJAX requests from web clients

The DutchPIPE server which can be started and then keeps running while accepting socket connections. Waits for and accepts socket requests from users connected through dpclient.php, and returns output to dpclient.php, which returns it to the end user. If there are 10 users on the site, it will loop through the main code for each user at a time.

To answer each request, the server passes the request on to the persistent DbUniverse object, where the real processing takes place.



		
        
LOCATED IN:  /lib/dpserver.php [line 46]
SEE:  dpclient.php, dpuniverse.php
AUTHOR(S):   Lennert Stock <ls@dutchpipe.org>
LINK:  http://dutchpipe.org/manual/package/DutchPIPE
VERSION:  Release: 0.2.1
LICENSE:  DutchPIPE License
COPYRIGHT:  2006, 2007 Lennert Stock
METHODS:

Methods Summary

DpServer   __construct()   Sets up the server at object creation time based on your settings
void   __destruct()   Closes the socket when the server is destroyed.
void   runDpServer()   Starts the DutchPIPE server, using a specific 'universe' object
void   tellCurrentDpUserRequest()   Tells a string to the current user request through dpclient.php

Methods

Constructor __construct  [line 83]
DpServer __construct( [string $iniFile = 'dpserver-ini.php']   )

Sets up the server at object creation time based on your settings

PARAMETERS: string   $iniFile  Path to a dpserver-ini.php like file
Destructor __destruct  [line 309]
void __destruct( )

Closes the socket when the server is destroyed.
runDpServer  [line 121]
void runDpServer( object &$universe   )

Starts the DutchPIPE server, using a specific 'universe' object

Also see: http://www.php.net/sockets


PARAMETERS: object   &$universe  An instance of DpUniverse
tellCurrentDpUserRequest  [line 324]
void tellCurrentDpUserRequest( string $talkback   )

Tells a string to the current user request through dpclient.php

Called from 'the universe' to talk back to the client, messages are typically XML with something like '<message>Lennert says: hi</message>'.


PARAMETERS: string   $talkback  String to send to current user client

Documentation generated on Mon, 03 Sep 2007 22:20:40 +0200 by phpDocumentor 1.3.0RC6

Click me!
Guest#1794
 
 
 
  Go to Top
 
 
Input Field OptionsClose Input Field Go to Top
 
Legal Notices | Copyright © 2006, 2007 Lennert Stock. All rights reserved. Last update: Mon Sep 03 2007, 21:50 CET.