Phergie
[ class tree: Phergie ] [ index: Phergie ] [ all elements ]

Class: Phergie_Process_Async

Source Location: /Phergie/Process/Async.php

Class Overview

Phergie_Process_Abstract
   |
   --Phergie_Process_Async

Connection data processor which polls to handle input in an asynchronous manner. Will also cause the application tick at the user-defined wait time.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Phergie_Process_Abstract

Phergie_Process_Abstract::__construct()
Gets the required class refences from Phergie_Bot.
Phergie_Process_Abstract::handleEvents()
Obtains and processes incoming events.
Phergie_Process_Abstract::processEvents()
Sends resulting outgoing events from earlier processing in handleEvents().

Class Details

[line 33]
Connection data processor which polls to handle input in an asynchronous manner. Will also cause the application tick at the user-defined wait time.



Tags:

author:  Phergie Development Team <team@phergie.org>
link:  http://pear.phergie.org/package/Phergie
license:  New BSD License


[ Top ]


Class Variables

$sec =  0

[line 40]

Length of time to poll for stream activity (seconds)



Tags:

access:  protected

Type:   int


[ Top ]

$usec =  200000

[line 47]

Length of time to poll for stream activity (microseconds)



Tags:

access:  protected

Type:   int


[ Top ]

$wait =  0

[line 54]

Length of time to wait between ticks.



Tags:

access:  protected

Type:   int


[ Top ]



Class Methods


constructor __construct [line 64]

void __construct( Phergie_Bot $bot, $options)

Overrides the parent class to set the poll time.



Tags:

access:  public


Overrides Phergie_Process_Abstract::__construct() (Gets the required class refences from Phergie_Bot.)

Parameters:

Phergie_Bot   $bot   Main bot class
array   $options   Processor arguments

[ Top ]

method handleEvents [line 98]

void handleEvents( )

Waits for stream activity and performs event processing on connections with data to read.



Tags:

access:  public


Overrides Phergie_Process_Abstract::handleEvents() (Obtains and processes incoming events.)

[ Top ]


Documentation generated on Mon, 27 Sep 2010 23:03:46 -0500 by phpDocumentor 1.4.3