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