Richard Fuchs
74c87bc066
MT#62181 AmArg: take ownership of ValueArray
...
Directly contain the ValueArray in the variant instead of manually
managing a pointer. Requires updating the return type of some const
functions to also be const, which in turn requires some of their users
to have the type const qualified as well.
Change-Id: I2ec31d659eef521a3f68d642ee431b5c38f27fdf
9 months ago
Richard Fuchs
41eaaaee31
MT#62181 AmArg: refactor as std::variant
...
This doesn't yet do much in terms of memory management as it still uses
pointers for arrays and structs, but it does move management of strings
and blobs into the variant. Further refactoring will bring the full
benefits.
Add specialised == operator to avoid implicit conversions to temporary
AmArg.
Includes white space cleanups.
Change-Id: I1e4bce6b96c2187294044f9f2a30fa7013912139
9 months ago
Richard Fuchs
8d0c121afc
MT#62181 global: fix AmThread/AmEventQueue order
...
Classes that inherit from both AmThread and AmEventHandler must inherit
from AmEventQueue first and from AmThread after. This is needed so that
the AmThread dtor is called first, which will trigger the thread to shut
down, which in turn makes sure nothing is waiting on the AmEventQueue's
condition variable.
Otherwise, if AmEventQueue is destroyed first while the corresponding
thread is still running and waiting on the condition variable, it will
be a deadlock.
With this, sems finally can shut down cleanly without having to be
killed by systemd.
Change-Id: I914455763b517c96561acb0b64fce26f127f44bc
10 months ago
Guillem Jover
d785557ddc
MT#55831 Use a proper accessor instead of messing with the struc directly
...
Use a proper accessor instead of messing with the struc directly
which has become opaque in latest OpenSSL versions.
(real ticket number: TT#12308)
Change-Id: I51855e46f07f2331ad281a94961ca1d7394dc0de
3 years ago
Guillem Jover
32beea4d2f
MT#55831 Revamp the build system
...
- Make errors fatal, so that they do not get ignored anymore.
- Use sane make variables that a shell will accept as valid, otherwise
the exports do not work at all.
- Do not use system paths when we should use in-tree ones.
(real ticket number: TT#6850)
Change-Id: I07af8f38cc37c2fa36b6b10559283a7c477d2d36
3 years ago
Victor Seva
ff47897962
Imported Upstream version 1.6.0~20140516~eaa616
12 years ago
Raphael Coeffic
878cf437d0
clang: remove warnings.
15 years ago
Stefan Sayer
67236106eb
fix dead assignment
15 years ago
Stefan Sayer
a32ab56dcf
removed unused 'separator' define
15 years ago
Stefan Sayer
7dcb7e2abb
added OpenSSL linking exception to license
16 years ago
Peter Lemenkov
08a5a3bfce
Added workarounfd for weird behaviour of CMake 2.4 while handling
...
static libs.
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1951 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Peter Lemenkov
b2535ebe67
Do not use SET_PROPERTY in CMake makefiles - incompatible with old CMake
...
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1918 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Raphael Coeffic
83d3904c7e
- fixes cross-compilation issue.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1895 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
a02ba7eb9e
fix dependency include in makefile error, when they could not be there already
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1685 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
573aaef009
include for using uint32_t
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1638 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Peter Lemenkov
d67e7a748e
- Fixed building of static libs.
...
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1531 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Peter Lemenkov
6e15b229e7
Common parts of CMake modules targets were moved to cmake/module.rules.txt.
...
This greatly simplified further work.
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1513 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Peter Lemenkov
a7ee9ca66c
- Simplified CMake files for building libraries and plugins.
...
- Ability to override installation directories.
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1509 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Peter Lemenkov
7fe3137a40
Use ADD_DEFINITIONS directive instead of naive checks for compiler
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1499 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Peter Lemenkov
1c4788fdb7
set CMAKE_SHARED_LIBRARY_PREFIX globally
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1495 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
27f7863f5b
fixed fd leak when SSL connection fails
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1482 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Peter Lemenkov
16044e080f
Some cleanups.
...
Since not, core module will be linked against samplerate and misdn (if enabled)
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1381 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Peter Lemenkov
6b1b2d526f
initial commit of cmake files
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1373 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
9128c0c7c2
missing header added, allows to build with gcc4.4. Patch by Peter Lemenkov
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1355 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
ae90dfc26a
ssl support is mandatory
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1241 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
96f41c1c2e
implements Disconnect-Peer-Request (DPR) handling and more proper (?) TLS connection shutdown.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1225 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
0dec77b98c
DIAMETER client with TLS, handling of request timeout/retries, multiple servers,
...
and bugfixes (closing failed sockets)
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1213 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
81f936bf77
using correct printf format
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1109 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
6b4cfc1bc2
moved Readme files to doc/ folder
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1107 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
f30989deff
mass setting Id svn property
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1048 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
502c2166e7
fixed minor mem leak on connect of diameter connection
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@831 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
d7c605d76f
b/f: close socket after failed socket connect
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@712 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
688756e465
fixes for SEMS on Solaris
...
contributed by Richard Newman rnewman at twinql dot com
from diff-20080128T1116.udiff
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@636 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
d5453745b2
DIAMETER client implementation to be used by SEMS apps and modules
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@565 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago