MediaWiki  REL1_22
SocketArray Class Reference

LockServerDaemon helper class that keeps track socket states. More...

Collaboration diagram for SocketArray:

List of all members.

Public Member Functions

 addSocket ($sock)
 appendRcvBuffer ($sock, $data)
 appendSndBuffer ($sock, $data)
 closeSocket ($sock)
 consumeSndBuffer ($sock, $bytes)
 readRcvBuffer ($sock)
 readSndBuffer ($sock)
 size ()
 socketsForSelect ()

Public Attributes

const BUFFER_SIZE = 65535

Protected Attributes

Array $clients = array()
Array $rBuffers = array()
Array $wBuffers = array()

Detailed Description

LockServerDaemon helper class that keeps track socket states.

Definition at line 326 of file LockServerDaemon.php.


Member Function Documentation

Parameters:
$sockresource
Returns:
bool

Definition at line 360 of file LockServerDaemon.php.

SocketArray::appendRcvBuffer ( sock,
data 
)
Parameters:
$sockresource
$datastring
Returns:
bool

Definition at line 388 of file LockServerDaemon.php.

SocketArray::appendSndBuffer ( sock,
data 
)
Parameters:
$sockresource
$datastring
Returns:
bool

Definition at line 418 of file LockServerDaemon.php.

Parameters:
$sockresource
Returns:
bool

Definition at line 371 of file LockServerDaemon.php.

SocketArray::consumeSndBuffer ( sock,
bytes 
)
Parameters:
$sockresource
$bytesinteger
Returns:
bool

Definition at line 446 of file LockServerDaemon.php.

Parameters:
$sockresource
Returns:
string|bool

Definition at line 403 of file LockServerDaemon.php.

Parameters:
$sockresource
Returns:
bool

Definition at line 433 of file LockServerDaemon.php.

Returns:
integer Number of client sockets

Definition at line 352 of file LockServerDaemon.php.

Returns:
Array (list of sockets to read, list of sockets to write)

Definition at line 336 of file LockServerDaemon.php.


Member Data Documentation

Array SocketArray::$clients = array() [protected]

Definition at line 327 of file LockServerDaemon.php.

Array SocketArray::$rBuffers = array() [protected]

Definition at line 328 of file LockServerDaemon.php.

Array SocketArray::$wBuffers = array() [protected]

Definition at line 329 of file LockServerDaemon.php.

const SocketArray::BUFFER_SIZE = 65535

Definition at line 331 of file LockServerDaemon.php.


The documentation for this class was generated from the following file: