Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Black
OpenXG-RAN
Commits
1df60139
Commit
1df60139
authored
Jun 30, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatically close GTP sockets at program end
parent
19d83ad2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
openair3/ocp-gtpu/gtp_itf.cpp
openair3/ocp-gtpu/gtp_itf.cpp
+6
-0
No files found.
openair3/ocp-gtpu/gtp_itf.cpp
View file @
1df60139
...
...
@@ -142,6 +142,12 @@ class gtpEndPoints {
pthread_mutex_t
gtp_lock
=
PTHREAD_MUTEX_INITIALIZER
;
// the instance id will be the Linux socket handler, as this is uniq
map
<
int
,
gtpEndPoint
>
instances
;
~
gtpEndPoints
()
{
// automatically close all sockets on quit
for
(
const
auto
p
:
instances
)
close
(
p
.
first
);
}
};
gtpEndPoints
globGtp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment