MediaWiki master
UDPRCFeedEngine.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\RCFeed;
22
23use UDPTransport;
24
45
52 public function send( array $feed, $line ) {
53 $transport = UDPTransport::newFromString( $feed['uri'] );
54 $transport->emit( $line );
55 return true;
56 }
57}
59class_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.