diff options
author | yamuna <yamuna@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-03-06 01:55:26 +0000 |
---|---|---|
committer | yamuna <yamuna@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-03-06 01:55:26 +0000 |
commit | 47d42e504183d2563bed32e5e8d77790a5549b34 (patch) | |
tree | b5ac23d1a8b4cdd3fcb8e65d94b6212906bd0cec | |
parent | 1a08b1500ae661322541892eef055f4f409d4e83 (diff) | |
download | ATCD-47d42e504183d2563bed32e5e8d77790a5549b34.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/ChangeLogs/ChangeLog-02a | 7 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/Simple/ftp.cpp | 46 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/Simple/ftp.h | 28 |
3 files changed, 30 insertions, 51 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a index cfd2ea20092..7d9cfd3853c 100644 --- a/TAO/ChangeLogs/ChangeLog-02a +++ b/TAO/ChangeLogs/ChangeLog-02a @@ -1,3 +1,10 @@ +Mon Mar 5 19:54:25 2001 Yamuna Krishnamurthy <yamuna@cs.wustl.edu> + + * orbsvcs/tests/AVStreams/Simple/ftp.h: + * orbsvcs/tests/AVStreams/Simple/ftp.cpp: + + Removed unused client callbacks. Replaced char* with ACE_CString. + Mon Mar 5 14:21:15 2001 Priyanka Gontla <pgontla@ece.uci.edu> * tests/Strategies/server.cpp : diff --git a/TAO/orbsvcs/tests/AVStreams/Simple/ftp.cpp b/TAO/orbsvcs/tests/AVStreams/Simple/ftp.cpp index ce3b165a4cb..b26d858e5dd 100644 --- a/TAO/orbsvcs/tests/AVStreams/Simple/ftp.cpp +++ b/TAO/orbsvcs/tests/AVStreams/Simple/ftp.cpp @@ -10,10 +10,6 @@ ACE_High_Res_Timer last_frame_sent_time; ACE_Time_Value inter_frame_time; // The time that should lapse between two consecutive frames sent. -FTP_Client_Callback::FTP_Client_Callback (void) -{ -} - FTP_Client_StreamEndPoint::FTP_Client_StreamEndPoint (void) { } @@ -40,9 +36,9 @@ FTP_Client_StreamEndPoint::set_protocol_object (const char *, Client::Client (void) :client_mmdevice_ (&endpoint_strategy_), count_ (0), - address_ (ACE_OS::strdup ("224.9.9.2:12345")), + address_ ("224.9.9.2:12345"), fp_ (0), - protocol_ (ACE_OS::strdup ("UDP")), + protocol_ ("UDP"), frame_rate_ (30) { this->mb.size (BUFSIZ); @@ -70,13 +66,13 @@ Client::parse_args (int argc, switch (c) { case 'f': - this->filename_ = ACE_OS::strdup (opts.optarg); + this->filename_.set (opts.optarg); break; case 'a': - this->address_ = ACE_OS::strdup (opts.optarg); + this->address_.set (opts.optarg); break; case 'p': - this->protocol_ = ACE_OS::strdup (opts.optarg); + this->protocol_.set (opts.optarg); break; case 'r': this->frame_rate_ = ACE_OS::atoi (opts.optarg); @@ -101,7 +97,7 @@ Client::file (void) return this->fp_; } -char* +ACE_CString Client::flowname (void) { return this->flowname_; @@ -175,12 +171,12 @@ Client::init (int argc, // Open file to read. - this->fp_ = ACE_OS::fopen (this->filename_, + this->fp_ = ACE_OS::fopen (this->filename_.c_str (), "r"); if (this->fp_ == 0) ACE_ERROR_RETURN ((LM_DEBUG, "Cannot open output file %s\n", - this->filename_), + this->filename_.c_str ()), -1); // Resolve the object reference of the server from the Naming Service. @@ -190,35 +186,27 @@ Client::init (int argc, -1); // Create the Flow protocol name - char flow_protocol_str [BUFSIZ]; + ACE_CString flow_protocol_str; if (this->use_sfp_) - ACE_OS::strcpy (flow_protocol_str, - "sfp:1.0"); + flow_protocol_str.set ("sfp:1.0"); else - ACE_OS::strcpy (flow_protocol_str, - ""); + flow_protocol_str.set (""); // Initialize the QoS AVStreams::streamQoS_var the_qos (new AVStreams::streamQoS); // Set the address of the ftp client. - ACE_INET_Addr addr (this->address_); - - // Initialize the flowname - ACE_NEW_RETURN (this->flowname_, - char [BUFSIZ], - 0); + ACE_INET_Addr addr (this->address_.c_str ()); - ACE_OS::sprintf (this->flowname_, - "Data_%s", - this->protocol_); + this->flowname_.set ("Data_"); + this->flowname_ += this->protocol_; // Create the forward flow specification to describe the flow. - TAO_Forward_FlowSpec_Entry entry (this->flowname_, + TAO_Forward_FlowSpec_Entry entry (this->flowname_.c_str (), "IN", "USER_DEFINED", - flow_protocol_str, - this->protocol_, + flow_protocol_str.c_str (), + this->protocol_.c_str (), &addr); AVStreams::flowSpec flow_spec (1); diff --git a/TAO/orbsvcs/tests/AVStreams/Simple/ftp.h b/TAO/orbsvcs/tests/AVStreams/Simple/ftp.h index 48c43359aa4..a7cc70305b4 100644 --- a/TAO/orbsvcs/tests/AVStreams/Simple/ftp.h +++ b/TAO/orbsvcs/tests/AVStreams/Simple/ftp.h @@ -28,22 +28,6 @@ #include "orbsvcs/AV/Policy.h" #include "orbsvcs/AV/Protocol_Factory.h" - -class FTP_Client_Callback : public TAO_AV_Callback -{ - // = TITLE - // Defines the client applcation callback. - // - // = DESCRIPTION - // This class can override the methods of - // the TAO_AV_Callback to do application - // specific processing. -public: - FTP_Client_Callback (void); - //Constructor -}; - - class FTP_Client_StreamEndPoint : public TAO_Client_StreamEndPoint { // = TITLE @@ -68,7 +52,7 @@ public: // Set protocol object corresponding to the transport protocol chosen. protected: - FTP_Client_Callback callback_; + TAO_AV_Callback callback_; // reference to the cllient application callback. }; @@ -104,7 +88,7 @@ public: TAO_StreamCtrl* streamctrl (void); // The stream control interface that manages the stream set up - char *flowname (void); + ACE_CString flowname (void); // name of the flow set up. int frame_rate (void); @@ -135,10 +119,10 @@ private: int argc_; char **argv_; - const char *filename_; + ACE_CString filename_; // File from which data is read. - const char *address_; + ACE_CString address_; // Address of the ftp client host machine or a multicast address - Default is // UDP multicast addess @@ -148,10 +132,10 @@ private: FILE *fp_; // File handle of the file read from. - char *protocol_; + ACE_CString protocol_; // Selected protocol - default is UDP - char *flowname_; + ACE_CString flowname_; int use_sfp_; // If set to 1 then use sfp as the flow carrier protocol. |