diff options
author | Gordon Bergling <gbe@FreeBSD.org> | 2020-10-09 19:12:44 +0000 |
---|---|---|
committer | Gordon Bergling <gbe@FreeBSD.org> | 2020-10-09 19:12:44 +0000 |
commit | 3d265fce43746c293ae826e9603adbfe09f93cf6 (patch) | |
tree | 595842fb2fed2701f1313532154050161a314090 /lib/libradius | |
parent | eb88fed44616747f930b74c42259511823811fe1 (diff) | |
download | src-test2-3d265fce43746c293ae826e9603adbfe09f93cf6.tar.gz src-test2-3d265fce43746c293ae826e9603adbfe09f93cf6.zip |
Notes
Diffstat (limited to 'lib/libradius')
-rw-r--r-- | lib/libradius/libradius.3 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libradius/libradius.3 b/lib/libradius/libradius.3 index f3ff70058d44..27612b73a1e3 100644 --- a/lib/libradius/libradius.3 +++ b/lib/libradius/libradius.3 @@ -485,7 +485,8 @@ To free the resources used by the RADIUS library, call .Fn rad_close . .Ss Server operation Server mode operates much alike to client mode, except packet send and receive -steps are swapped. To operate as server you should obtain server context with +steps are swapped. +To operate as server you should obtain server context with .Fn rad_server_open function, passing opened and bound UDP socket file descriptor as argument. You should define allowed clients and their secrets using @@ -493,9 +494,9 @@ You should define allowed clients and their secrets using function. port, timeout and max_tries arguments are ignored in server mode. You should call .Fn rad_receive_request -function to receive request from client. If you do not want to block on socket -read, you are free to use any poll(), select() or non-blocking sockets for -the socket. +function to receive request from client. +If you do not want to block on socket read, you are free to use any +poll(), select() or non-blocking sockets for the socket. Received request can be parsed with same parsing functions as for client. To respond to the request you should call .Fn rad_create_response |