Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

rc2irc.php File Reference

Go to the source code of this file.

Functions

 delayMin ()
 getMicroTime ()
 getIrcOutput ($socket, $in)
 joinRoom ($sock, $room)
 partRoom ($sock, $room)
 processIrcInput ($sock, $line)
 emptyQueue ($id)

Variables

 $ircNick = "wikipedia_rc"
 $rooms = array("en" => 1, "fr" => 1, "de" => 1)
 $ircServer = "irc.freenode.net"
 $ircSockName = "tcp://$ircServer"
 $ircPort = 6667
 $minDelay = 0.5
 $ircReadTimeout = 200000
 $ircWriteTimeout = 30
 $fmB = chr(2)
 $fmU = chr(31)
 $queueId = 337055475
 $maxMessageSize = 16384
 $ircPassword = mt_rand(0xffffffff)
 $hostname = getenv(SERVER_NAME)
 $queue = msg_get_queue($queueId)
 $sockIRC = fsockopen( $ircSockName, $ircPort )
 $readObjs = array( $sockIRC, $queue )
 $die = false
 $line = rtrim(fgets( $sockIRC ))


Function Documentation

delayMin  ) 
 

Definition at line 76 of file rc2irc.php.

References $minDelay, and getMicroTime().

Referenced by getIrcOutput().

emptyQueue id  ) 
 

Definition at line 186 of file rc2irc.php.

getIrcOutput socket,
in
 

Definition at line 97 of file rc2irc.php.

References $comment, $empty, $flag, $fullString, $lastid, $rooms, $title, $url, $user, delayMin(), and title.

getMicroTime  ) 
 

Definition at line 91 of file rc2irc.php.

Referenced by convertLinks(), and delayMin().

joinRoom sock,
room
 

Definition at line 146 of file rc2irc.php.

References $rooms.

Referenced by processIrcInput().

partRoom sock,
room
 

Definition at line 153 of file rc2irc.php.

References $rooms.

Referenced by processIrcInput().

processIrcInput sock,
line
 

Definition at line 160 of file rc2irc.php.

References $args, $die, $rooms, joinRoom(), name, and partRoom().


Variable Documentation

$die = false
 

Definition at line 52 of file rc2irc.php.

Referenced by processIrcInput().

$fmB = chr(2)
 

Definition at line 11 of file rc2irc.php.

$fmU = chr(31)
 

Definition at line 12 of file rc2irc.php.

$hostname = getenv(SERVER_NAME)
 

Definition at line 21 of file rc2irc.php.

Referenced by OutputPage::reportTime().

$ircNick = "wikipedia_rc"
 

Definition at line 3 of file rc2irc.php.

$ircPassword = mt_rand(0xffffffff)
 

Definition at line 20 of file rc2irc.php.

$ircPort = 6667
 

Definition at line 7 of file rc2irc.php.

$ircReadTimeout = 200000
 

Definition at line 9 of file rc2irc.php.

$ircServer = "irc.freenode.net"
 

Definition at line 5 of file rc2irc.php.

$ircSockName = "tcp://$ircServer"
 

Definition at line 6 of file rc2irc.php.

$ircWriteTimeout = 30
 

Definition at line 10 of file rc2irc.php.

$line = rtrim(fgets( $sockIRC ))
 

Definition at line 67 of file rc2irc.php.

Referenced by _DiffEngine::_diag(), memcached::_incrdecr(), MemCachedClient::_load_items(), memcached::_set(), dbsource(), _DiffEngine::diff(), PageHistory::history(), ImagePage::imageHistory(), showHit(), wfAbruptExit(), and wfAddRow().

$maxMessageSize = 16384
 

Definition at line 14 of file rc2irc.php.

$minDelay = 0.5
 

Definition at line 8 of file rc2irc.php.

Referenced by delayMin().

$queue = msg_get_queue($queueId)
 

Definition at line 23 of file rc2irc.php.

Referenced by RecentChange::save().

$queueId = 337055475
 

Definition at line 13 of file rc2irc.php.

$readObjs = array( $sockIRC, $queue )
 

Definition at line 49 of file rc2irc.php.

$rooms = array("en" => 1, "fr" => 1, "de" => 1)
 

Definition at line 4 of file rc2irc.php.

Referenced by getIrcOutput(), joinRoom(), partRoom(), and processIrcInput().

$sockIRC = fsockopen( $ircSockName, $ircPort )
 

Definition at line 32 of file rc2irc.php.


Generated on Tue Jun 29 23:40:12 2004 for Mediawiki by doxygen 1.3.7