diff options
author | sumedh <sumedh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-17 00:57:24 +0000 |
---|---|---|
committer | sumedh <sumedh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-17 00:57:24 +0000 |
commit | c15626217e195eb87ecc0d50d19f9099cdb3d296 (patch) | |
tree | 8bf5913c0219a2e00ae8029973a65b8cb4a4fadc | |
parent | ab4e07d0aa182e97e21f0c3722784a0faee2561a (diff) | |
download | ATCD-c15626217e195eb87ecc0d50d19f9099cdb3d296.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/sfp/Makefile | 66 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/sfp/client.cpp | 31 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/sfp/svc.conf | 49 |
3 files changed, 146 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/sfp/Makefile b/TAO/orbsvcs/tests/AVStreams/sfp/Makefile new file mode 100644 index 00000000000..cbb5747608e --- /dev/null +++ b/TAO/orbsvcs/tests/AVStreams/sfp/Makefile @@ -0,0 +1,66 @@ +#---------------------------------------------------------------------------- +# $Id$ +# +# Top-level Makefile for the AVStreams demo of the TAO ORB +# +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# Local macros +#---------------------------------------------------------------------------- + +LDLIBS = -lorbsvcs -lTAO + +PROG_SRCS = main.cpp + +LSRC = $(PROG_SRCS) + +AVStreams_SERVER_OBJS = server.o +AVStreams_CLIENT_OBJS = client.o + +COSPROPERTY_OBJS = main.o + +BIN = server client + +BUILD = $(BIN) +VLDLIBS = $(LDLIBS:%=%$(VAR)) + +#---------------------------------------------------------------------------- +# Include macros and targets +#---------------------------------------------------------------------------- + +include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU +include $(ACE_ROOT)/include/makeinclude/macros.GNU +include $(ACE_ROOT)/include/makeinclude/rules.common.GNU +include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU +#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU +include $(ACE_ROOT)/include/makeinclude/rules.local.GNU + +ifndef TAO_ROOT +TAO_ROOT = $(ACE_ROOT)/TAO +endif + +DCFLAGS = -g +LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao +CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H + +server:$(addprefix $(VDIR),$(AVStreams_SERVER_OBJS)) + $(LINK.cc) $(LDFAGS) -o $@ $^ $(VLDLIBS) + +client:$(addprefix $(VDIR),$(AVStreams_CLIENT_OBJS)) + $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) + +#main: $(addprefix $(VDIR), $(COSPROPERTY_OBJS)) +# $(LINK.cc) $(LDFAGS) -o $@ $^ $(VLDLIBS) + + +realclean: clean + -/bin/rm -rf + + +# DO NOT DELETE THIS LINE -- g++dep uses it. +# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. + + + +# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/orbsvcs/tests/AVStreams/sfp/client.cpp b/TAO/orbsvcs/tests/AVStreams/sfp/client.cpp new file mode 100644 index 00000000000..2fe12b07991 --- /dev/null +++ b/TAO/orbsvcs/tests/AVStreams/sfp/client.cpp @@ -0,0 +1,31 @@ +// $Id$ + +#include "ace/Message_Block.h" +#include "orbsvcs/AV/sfp.h" + +const char *buf = "Hello World\n"; + +main () +{ + ACE_Message_Block *message; + + ACE_NEW_RETURN (message, + ACE_Message_Block (buf), + -1); + + SFP_Encoder encoder; + + ACE_Message_Block *start_message = + encoder.encode_start_message (); + + for (int i = 0; i < start_message->length (); i++) + cerr << i << (start_message->rd_ptr ())[i] << endl; + + SFP_Decoder decoder; + + decoder.decode_start_message (start_message); + + encoder.encode_simple_frame (message); + + return 0; +} diff --git a/TAO/orbsvcs/tests/AVStreams/sfp/svc.conf b/TAO/orbsvcs/tests/AVStreams/sfp/svc.conf new file mode 100644 index 00000000000..43c6a486c92 --- /dev/null +++ b/TAO/orbsvcs/tests/AVStreams/sfp/svc.conf @@ -0,0 +1,49 @@ +# $Id$ +# +# This file contains a sample ACE_Service_Config configuration +# file specifying the strategy factories utilized by an application +# using TAO. There are currently only two possible factories: +# Client_Strategy_Factory and Server_Strategy_Factory. These names +# must be used as the second argument to their corresponding line, +# because that's what the ORB uses to find the desired factory. +# +# Note that there are two unordinary characteristics of the way *this* +# file is set up: +# - both client and server strategies are specified in the same +# file, which would only make sense for co-located clients & servers +# - both of the factories are actually sourced out of libTAO.so +# (TAO.DLL on Win32), and they would normally be in a separate +# dll from the TAO ORB Core. +# +# The options which can be passed to the Resource Factory are: +# +# -ORBresources <which> +# where <which> can be 'global' to specify globally-held resources, +# or 'tss' to specify thread-specific resources. +# +# The options which can be passed to the Client are: +# <none currently> +# +# The options which can be passed to the Server are: +# +# -ORBconcurrency <which> +# where <which> can be 'thread-per-connection' to specify +# use of the ACE_Threaded_Strategy concurrency strategy, +# or 'reactive' to specify use of the ACE_Reactive_Strategy +# concurrency strategy. +# +# -ORBthreadflags <flags> +# specifies the default thread flags to use, where <flags> is a +# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, +# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid +# on every platform. +# +# -ORBdemuxstrategy <which> +# where <which> can be one of 'dynamic', 'linear', 'active', or 'user', +# and specifies the type of object lookup strategy used internally. +# -ORBtablesize <unsigned> +# specifies the size of the object table +# +dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global" +dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory() +dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128" |