add protoApp version of normCast (normCastApp) -- includes realtime protopipe for runtime control using a subset of commands (rate, CC, autoparity, loss)

pull/68/head
Jeffery Weston 2022-05-19 16:55:37 -04:00
parent 22aceaa271
commit 9e796e69b2
4 changed files with 1764 additions and 0 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ makefiles/norm
makefiles/normMsgr
makefiles/normStreamer
makefiles/normCast
makefiles/normCastApp
makefiles/normClient
makefiles/normServer
makefiles/npc

1738
examples/normCastApp.cpp Normal file

File diff suppressed because it is too large Load Diff

View File

@ -197,6 +197,16 @@ normCast: $(CAST_OBJ) libnorm.a $(LIBPROTO)
mkdir -p ../bin
cp $@ ../bin/$@
# (normCastApp) file sender/receiver
CASTAPP_SRC = $(EXAMPLE)/normCastApp.cpp $(COMMON)/normPostProcess.cpp \
$(UNIX)/unixPostProcess.cpp
CASTAPP_OBJ = $(CASTAPP_SRC:.cpp=.o)
normCastApp: $(CASTAPP_OBJ) libnorm.a $(LIBPROTO)
$(CC) $(CFLAGS) -o $@ $(CASTAPP_OBJ) $(LDFLAGS) libnorm.a $(LIBPROTO) $(LIBS)
mkdir -p ../bin
cp $@ ../bin/$@
# These are the new "NormSocket" API extension examples
SERVER_SRC = $(EXAMPLE)/normServer.cpp $(EXAMPLE)/normSocket.cpp
SERVER_OBJ = $(SERVER_SRC:.cpp=.o)

15
wscript
View File

@ -205,6 +205,21 @@ def build(ctx):
if system in ('linux', 'darwin', 'freebsd', 'gnu', 'gnu/kfreebsd'):
normCast.source.append('src/unix/unixPostProcess.cpp')
normCastApp = ctx.program(
target = 'normCastApp',
includes = ['include', 'protolib/include'],
use = use,
defines = [],
source = source + ['examples/normCastApp.cpp', 'src/common/normPostProcess.cpp'],
# Disabled by default
posted = True,
# Don't install examples
install_path = False,
)
if system in ('linux', 'darwin', 'freebsd', 'gnu', 'gnu/kfreebsd'):
normCastApp.source.append('src/unix/unixPostProcess.cpp')
for example in (
#'normDataExample',