MediaWiki
master
UDPRCFeedEngine.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\RCFeed
;
22
23
use
UDPTransport
;
24
45
class
UDPRCFeedEngine
extends
FormattedRCFeed
{
46
53
public
function
send
( array $feed, $line ) {
54
$transport = UDPTransport::newFromString( $feed[
'uri'
] );
55
$transport->emit( $line );
56
return
true
;
57
}
58
}
60
class_alias( UDPRCFeedEngine::class,
'UDPRCFeedEngine'
);
MediaWiki\RCFeed\FormattedRCFeed
Base class for RCFeed implementations that use RCFeedFormatter.
Definition
FormattedRCFeed.php:35
MediaWiki\RCFeed\UDPRCFeedEngine
Send recent change notifications to a destination address over UDP.
Definition
UDPRCFeedEngine.php:45
MediaWiki\RCFeed\UDPRCFeedEngine\send
send(array $feed, $line)
Definition
UDPRCFeedEngine.php:53
UDPTransport
A generic class to send a message over UDP.
Definition
UDPTransport.php:33
MediaWiki\RCFeed
Definition
FormattedRCFeed.php:21
includes
recentchanges
RCFeed
UDPRCFeedEngine.php
Generated on Fri Oct 11 2024 22:25:02 for MediaWiki by
1.10.0