MediaWiki  REL1_19
SocketArray Class Reference

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

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

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

Detailed Description

LockServerDaemon helper class that keeps track socket states.

Definition at line 307 of file LockServerDaemon.php.


Member Function Documentation

Parameters:
$sockresource
Returns:
bool

Definition at line 344 of file LockServerDaemon.php.

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

Definition at line 372 of file LockServerDaemon.php.

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

Definition at line 402 of file LockServerDaemon.php.

Parameters:
$sockresource
Returns:
bool

Definition at line 355 of file LockServerDaemon.php.

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

Definition at line 430 of file LockServerDaemon.php.

Parameters:
$sockresource
Returns:
string|false

Definition at line 387 of file LockServerDaemon.php.

Parameters:
$sockresource
Returns:
bool

Definition at line 417 of file LockServerDaemon.php.

Returns:
integer Number of client sockets

Definition at line 336 of file LockServerDaemon.php.

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

Definition at line 320 of file LockServerDaemon.php.


Member Data Documentation

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

Definition at line 309 of file LockServerDaemon.php.

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

Definition at line 311 of file LockServerDaemon.php.

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

Definition at line 313 of file LockServerDaemon.php.

const SocketArray::BUFFER_SIZE = 65535

Definition at line 315 of file LockServerDaemon.php.


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