radius_add_server

(PECL radius >= 1.1.0)

radius_add_serverAdds a server

Beschreibung

radius_add_server(
    resource $radius_handle,
    string $hostname,
    int $port,
    string $secret,
    int $timeout,
    int $max_tries
): bool

radius_add_server() may be called multiple times, and it may be used together with radius_config(). At most 10 servers may be specified. When multiple servers are given, they are tried in round-robin fashion until a valid response is received, or until each server's max_tries limit has been reached.

Parameter-Liste

radius_handle

hostname

The hostname parameter specifies the server host, either as a fully qualified domain name or as a dotted-quad IP address in text form.

port

The port specifies the UDP port to contact on the server. If port is given as 0, the library looks up the radius/udp or radacct/udp service in the network services database, and uses the port found there. If no entry is found, the library uses the standard Radius ports, 1812 for authentication and 1813 for accounting.

secret

The shared secret for the server host is passed to the secret parameter. The Radius protocol ignores all but the leading 128 bytes of the shared secret.

timeout

The timeout for receiving replies from the server is passed to the timeout parameter, in units of seconds.

max_tries

The maximum number of repeated requests to make before giving up is passed into the max_tries.

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Beispiele

Beispiel #1 radius_add_server() example

<?php
if (!radius_add_server($res'radius.example.com'1812'testing123'33)) {
    echo 
'RadiusError:' radius_strerror($res). "\n<br>";
    exit;
}
?>

Siehe auch

  • radius_config() - Causes the library to read the given configuration file

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

PHPUnit in der Version 10 erschienen

Das beliebte Testframeworks PHPUnit ist in der Version 10 erschienen und steht zum Download bereit ...

TheMax

Autor : TheMax
Kategorie: Software & Web-Development

Laravel 10 veröffentlicht

Laravel Version 10 steht mit einer Mindestanforderung von PHP 8.1 zum Download bereit. ...

admin

Autor : admin
Kategorie: Software & Web-Development

DeepL Erweiterung Write als beta veröffentlicht

DeepL hat eine neuen Dienst Namens „write“ veröffentlicht, der die Rechtschreibung und Grammatik mit KI verbessern soll. ...

admin

Autor : admin
Kategorie: Dies und Das

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

Restart the Stream for Fubo TV

The issue could be with a particular channel streaming. Turn off the stream you are facing issues with and try another channel. If that channel st ...

Geschrieben von hensen5005 am 28.05.2023 00:19:38
Forum: Fragen/Vorschläge zum Forum
Check internet speed for smooth function of Fubo TV

Quite often, problems with streaming applications are related to slow internet speeds. So try using other apps like Youtube and check whether your ...

Geschrieben von hensen5005 am 28.05.2023 00:11:16
Forum: Fragen/Vorschläge zum Forum
Reinstall or update the application Fubo App

Much like other applications, Fubotv/connect (https://www.fubo-connect.com/) also receives updates over time. So if there is any pending update fo ...

Geschrieben von hensen5005 am 28.05.2023 00:02:36
Forum: Fragen/Vorschläge zum Forum
Peacock offers faster access to Universal films

In July 2021, Universal released The Boss Baby 2 in theaters, and also for paid subscribers to Peacock on the same day. It did the same in October ...

Geschrieben von hensen5005 am 27.05.2023 23:51:25
Forum: Fragen/Vorschläge zum Forum