mirror of
https://github.com/nostar/urfd.git
synced 2026-11-08 04:19:39 +00:00
config files & better CCodecStream msgs
This commit is contained in:
1 parent
04cb61bfde
commit
2374ebeaf2
5 files changed
+63
-6
No files matched your search
@@ -0,0 +1,12 @@
|
||||
##############################################################################
|
||||
# URFD blacklist file
|
||||
#
|
||||
# one line per entry
|
||||
# each entry is explicitely denied access (blacklisted)
|
||||
# you can use * as last wildcard character
|
||||
# example:
|
||||
# * -> deny access to eveybody !!!
|
||||
# LX* -> deny access to all callsign starting with LX
|
||||
# LX3JL -> deny access to LX3JL exactly
|
||||
#
|
||||
#############################################################################
|
||||
@@ -0,0 +1,16 @@
|
||||
##############################################################################
|
||||
# URFD interlink file
|
||||
#
|
||||
# one line per entry
|
||||
# each entry specifies a remote XLX or XRF to peer with
|
||||
# format:
|
||||
# <URF callsign> <ip> <list of modules shared>
|
||||
# <XRF callsign> <ip> <local module><remote module>
|
||||
# example:
|
||||
# URF270 158.64.26.132 ACD
|
||||
# XRF270 158.64.26.132 BB
|
||||
#
|
||||
# note: the remote XLX must list this XLX in its interlink file
|
||||
# for the link to be established
|
||||
#
|
||||
#############################################################################
|
||||
@@ -0,0 +1,17 @@
|
||||
#########################################################################################
|
||||
# URFD terminal option file
|
||||
#
|
||||
# one line per entry
|
||||
# each entry specifies a terminal option
|
||||
#
|
||||
# Valid option:
|
||||
# address <ip> - Ip address to be used by the terminal route responder
|
||||
# By default, the request destination address is used.
|
||||
# If the system is behind a router, set it to the public IP
|
||||
# If the system runs on the public IP, leave unset.
|
||||
# modules <modules> - a string with all modules to accept a terminal connection
|
||||
# Default value is "*", meaning accept all
|
||||
#
|
||||
#########################################################################################
|
||||
#address 193.1.2.3
|
||||
#modules BCD
|
||||
@@ -0,0 +1,13 @@
|
||||
##############################################################################
|
||||
# URFD whitelist file
|
||||
#
|
||||
# one line per entry
|
||||
# each entry is explicitely authorised (whitelisted)
|
||||
# you can use * as last wildcard character
|
||||
# example:
|
||||
# * -> authorize eveybody
|
||||
# LX* -> authorize all callsign starting with LX
|
||||
# LX3JL -> authorize LX3JL exactly
|
||||
#
|
||||
#############################################################################
|
||||
*
|
||||
@@ -89,18 +89,17 @@ void CCodecStream::Thread()
|
||||
// display stats
|
||||
if (m_fPingMin >= 0.0)
|
||||
{
|
||||
char sz[64];
|
||||
double min = m_fPingMin * 1000.0;
|
||||
double max = m_fPingMax * 1000.0;
|
||||
double ave = (m_fPingCount > 0) ? m_fPingSum / m_fPingCount * 1000.0 : 0.0;
|
||||
sprintf(sz, "ambed stats (ms) : %.1f/%.1f/%.1f", min, ave, max);
|
||||
std::cout << sz << std::endl;
|
||||
auto prec = std::cout.precision();
|
||||
std::cout.precision(1);
|
||||
std::cout << "Transcoder Stats (ms): " << min << "/" << ave << "/" << max << std::endl;
|
||||
std::cout.precision(prec);
|
||||
}
|
||||
if (m_uiTimeoutPackets)
|
||||
{
|
||||
char sz[64];
|
||||
sprintf(sz, "ambed %d of %d packets timed out", m_uiTimeoutPackets, m_uiTotalPackets);
|
||||
std::cout << sz << std::endl;
|
||||
std::cout << m_uiTimeoutPackets << " of " << m_uiTotalPackets << " packets timed out" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user