* @todo ~50% done
*/
public function doListen() {
- // Read a package and determine the client
+ // Read a package and determine the peer
$amount = @socket_recvfrom($this->getSocketResource(), $pkt, 1500, 0, $peer, $port);
// Get last error
// Debug only
$this->debugOutput('LISTENER: Handling UDP package with size ' . strlen($pkt) . ' from peer ' . $peer . ':' . $port);
}
+
+ /**
+ * Checks wether the listener would accept the given package data array
+ *
+ * @param $packageData Raw package data
+ * @return $accepts Wether this listener does accept
+ */
+ function ifListenerAcceptsPackageData (array $packageData) {
+ $this->partialStub('This call should not happen. Please report it.');
+ }
}
// [EOF]