Module ocs_radius_acct_port_server

This gen_server behaviour callback module receives radius messages on a port assigned for accounting in the ocs application.

Copyright © 2016 - 2026 SigScale Global Inc.

Behaviours: gen_server.

References

Description

This gen_server behaviour callback module receives radius messages on a port assigned for accounting in the ocs application.

Data Types

state()

state() = #state{acct_sup = pid(), disc_sup = undefined | pid(), address = inet:ip_address(), port = non_neg_integer()}

Function Index

init/1Initialize the ocs_radius_acct_port_server server.
handle_call/3Handle a request sent using gen_server:call/2,3 or gen_server:multi_call/2,3,4.
handle_cast/2Handle a request sent using gen_server:cast/2 or gen_server:abcast/2,3.
handle_info/2Handle a received message.
terminate/2Cleanup and exit.
code_change/3Update internal state data during a release upgrade/downgrade.
request/7*Handle a received RADIUS Accounting Request packet.
get_service_type/1*

Function Details

init/1

init(Args) -> Result

Initialize the ocs_radius_acct_port_server server. Args :: [Sup :: pid(), Module :: atom(), Port :: non_neg_integer(), IpAddress :: inet:ip_address()].

See also: //stdlib/gen_server:init/1.

handle_call/3

handle_call(Request, From, State) -> Result

Handle a request sent using gen_server:call/2,3 or gen_server:multi_call/2,3,4.

See also: //stdlib/gen_server:handle_call/3.

handle_cast/2

handle_cast(Request, State) -> Result

Handle a request sent using gen_server:cast/2 or gen_server:abcast/2,3.

See also: //stdlib/gen_server:handle_cast/2.

handle_info/2

handle_info(Info, State) -> Result

Handle a received message.

See also: //stdlib/gen_server:handle_info/2.

terminate/2

terminate(Reason, State) -> any()

Cleanup and exit.

See also: //stdlib/gen_server:terminate/3.

code_change/3

code_change(OldVsn, State, Extra) -> Result

Update internal state data during a release upgrade/downgrade.

See also: //stdlib/gen_server:code_change/3.

request/7 *

request(IpAddress, Port, Secret, ListenPort, Radius, From, State) -> Result

Handle a received RADIUS Accounting Request packet.

get_service_type/1 *

get_service_type(Attr) -> any()


Generated by EDoc