Class SocThread

Description

The Socket Calling Class This Class uses PHP Sockets to connect to server and launch a PHP Script/Thread it Extends CallerBasic and implelemts it's Abstract functions

Located in /Thread/SocThreader.php (line 22)

CallerBasic
   |
   --SocThread
Variable Summary
 string $params
Method Summary
 ScoThread __construct (string $url, string $params, Process $MothProcess)
 void Go ()
 void SetParams (string $Npr)
Variables
string $params (line 35)

Parameters to be passed to thread

  • access: public

Inherited Variables

Inherited from CallerBasic

CallerBasic::$pos
Methods
Constructor __construct (line 44)

SocThread Constructor

ScoThread __construct (string $url, string $params, Process $MothProcess)
  • string $url: FULL Url to the Thread to be called
  • string $params: Thread Parameters
  • Process $MothProcess: The Process that Contains Threads

Redefinition of:
CallerBasic::__construct()
CallerBasic Constructor , it must be explicily called from clasese extending it (PHP OOP issue)
Go (line 57)

Socket Thread Calling Specific Launching Function

use Proper Http Headers to use with Sockets in order to make server Execute Script

void Go ()

Redefinition of:
CallerBasic::Go()
This is a void function with no arguments
SetParams (line 86)

Socket Thread Calling Specific Parameters Setting Function

Direct Setting of Thread Params

Note : Parameters Format are Like Passed through GET in urls e.g. "asd=1&qwe=2&rty=3" will be perceived by called thread $_POST['asd']=1 , $_POST['qwe']=2 , $_POST['rty']=3

void SetParams (string $Npr)
  • string $Npr

Redefinition of:
CallerBasic::SetParams()
A void function with one argument

Inherited Methods

Inherited From CallerBasic

 CallerBasic::__construct()
 CallerBasic::Get()
 CallerBasic::GetID()
 CallerBasic::GetState()
 CallerBasic::Go()
 CallerBasic::Join()
 CallerBasic::Set()
 CallerBasic::SetParams()

Documentation generated on Fri, 01 Aug 2008 05:54:17 +0300 by phpDocumentor 1.4.1