Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
6792-dia-Add-callback-attributes-to-diameter_tr...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 6792-dia-Add-callback-attributes-to-diameter_transport.patch of Package erlang
From fb2a3e1d6dd7921fcd911ecd716d3d057cc34882 Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Wed, 27 Sep 2023 16:08:08 +0200 Subject: [PATCH 2/2] dia: Add callback attributes to diameter_transport --- lib/diameter/src/transport/diameter_transport.erl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/diameter/src/transport/diameter_transport.erl b/lib/diameter/src/transport/diameter_transport.erl index 3ca4d97f50..8da90ed9bb 100644 --- a/lib/diameter/src/transport/diameter_transport.erl +++ b/lib/diameter/src/transport/diameter_transport.erl @@ -20,6 +20,8 @@ -module(diameter_transport). +-include_lib("diameter/include/diameter.hrl"). + %% %% This module implements a transport start function that %% evaluates its config argument. @@ -30,6 +32,16 @@ select/3, eval/3]). +-callback start({Type, Ref}, Svc, Config) -> + {ok, Pid} | {ok, Pid, LAddrs} | {error, Reason} when + Type :: connect | accept, + Ref :: diameter:transport_ref(), + Svc :: #diameter_service{}, + Config :: term(), + Pid :: pid(), + LAddrs :: [inet:ip_address()], + Reason :: term(). + %% start/3 %% Call a start function in this module ... -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor