<?php
-
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*/
/**
- * Sends the notification to the specified host in a UDP packet.
+ * Send recent change notifications in a UDP packet.
* @since 1.22
*/
-
-class UDPRCFeedEngine implements RCFeedEngine {
+class UDPRCFeedEngine extends RCFeedEngine {
/**
* @see RCFeedEngine::send
*/
public function send( array $feed, $line ) {
- wfErrorLog( $line, $feed['uri'] );
+ $transport = UDPTransport::newFromString( $feed['uri'] );
+ $transport->emit( $line );
}
}