nrtb-core team mailing list archive
-
nrtb-core team
-
Mailing list archive
-
Message #00058
[Branch ~fpstovall/nrtb/cpp_common] Rev 21: Corrected a stupid but pervasive spelling error in the transceiver class.
------------------------------------------------------------
revno: 21
committer: fpstovall@xxxxxxxxx
branch nick: dev
timestamp: Wed 2010-12-29 22:05:40 -0500
message:
Corrected a stupid but pervasive spelling error in the transceiver class.
renamed:
common/transciever/ => common/transceiver/
common/transciever/transciever.cpp => common/transceiver/transceiver.cpp
common/transciever/transciever.h => common/transceiver/transceiver.h
common/transciever/transciever_test.cpp => common/transceiver/transceiver_test.cpp
modified:
common/transceiver/Makefile
common/transceiver/transceiver.h
--
lp:~fpstovall/nrtb/cpp_common
https://code.launchpad.net/~fpstovall/nrtb/cpp_common
Your team NRTB Core is subscribed to branch lp:~fpstovall/nrtb/cpp_common.
To unsubscribe from this branch go to https://code.launchpad.net/~fpstovall/nrtb/cpp_common/+edit-subscription
=== renamed directory 'common/transciever' => 'common/transceiver'
=== modified file 'common/transceiver/Makefile'
--- common/transciever/Makefile 2010-12-30 02:21:26 +0000
+++ common/transceiver/Makefile 2010-12-30 03:05:40 +0000
@@ -16,23 +16,23 @@
#
#***********************************************
-lib: transciever_test
- @cp -v transciever.h ../include
- @cp -v transciever.o ../obj
+lib: transceiver_test
+ @cp -v transceiver.h ../include
+ @cp -v transceiver.o ../obj
@echo build complete
../include/confreader.h:
@cp ../confreader; make lib
-transciever.o: transciever.h transciever.cpp Makefile ../include/confreader.h
- @rm -f transciever.o
- g++ -c transciever.cpp -I ../include
+transceiver.o: transceiver.h transceiver.cpp Makefile ../include/confreader.h
+ @rm -f transceiver.o
+ g++ -c transceiver.cpp -I ../include
-transciever_test: transciever.o transciever_test.cpp
- @rm -f transciever_test
- g++ -c transciever_test.cpp
- g++ -o transciever_test transciever_test.o transciever.o ../obj/common.o ../obj/log_setup.o -lPocoFoundation -lPocoUtil
+transceiver_test: transceiver.o transceiver_test.cpp
+ @rm -f transceiver_test
+ g++ -c transceiver_test.cpp
+ g++ -o transceiver_test transceiver_test.o transceiver.o ../obj/common.o ../obj/log_setup.o -lPocoFoundation -lPocoUtil
clean:
- @rm -rvf *.o transciever_test ../include/transciever.h ../obj/transciever.o
+ @rm -rvf *.o transceiver_test ../include/transceiver.h ../obj/transceiver.o
@echo all objects and executables have been erased.
=== renamed file 'common/transciever/transciever.cpp' => 'common/transceiver/transceiver.cpp'
=== renamed file 'common/transciever/transciever.h' => 'common/transceiver/transceiver.h'
--- common/transciever/transciever.h 2010-12-30 02:54:43 +0000
+++ common/transceiver/transceiver.h 2010-12-30 03:05:40 +0000
@@ -16,8 +16,8 @@
**********************************************/
-#ifndef nrtb_transciever_h
-#define nrtb_transciever_h
+#ifndef nrtb_transceiver_h
+#define nrtb_transceiver_h
#include <string>
#include <Poco/Net/StreamSocket.h>
@@ -29,7 +29,7 @@
namespace nrtb
{
/*******************************************************************
- * transciever is used to manage GBP (google protocol buffers)
+ * transceiver is used to manage GBP (google protocol buffers)
* traffic between NRTB components. This is the only form of
* IPC used by NRTB.
*
@@ -39,16 +39,16 @@
* The nrtb::confreader singleton will be queried for the
* following parameters:
*
- * transciever.history_size (int)
- * transciever.send_timeout (int)
- * transciever.allow_recovery (bool)
- * transciever.max_consecutive_errors (int)
+ * transceiver.history_size (int)
+ * transceiver.send_timeout (int)
+ * transceiver.allow_recovery (bool)
+ * transceiver.max_consecutive_errors (int)
*
* See https://blueprints.launchpad.net/nrtb/+spec/icp-spec for
* specification this class implements.
* ***************************************************************/
template <class out_gpb, class in_gpb>
- class transciever
+ class transceiver
{
public:
/// outbound messages will be of this type
@@ -56,16 +56,16 @@
/// inbound messages will be of this type.
typedef in_gpb inbound_type;
/**************************************************************
- * Creates the transciever and associates it with a provided
+ * Creates the transceiver and associates it with a provided
* socket. Once created this class assumes it uniquely owns the
* socket and will close it upon distruction.
* ***********************************************************/
- transciever(Poco::Net::StreamSocket socket);
+ transceiver(Poco::Net::StreamSocket socket);
/**************************************************************
* Closes the socket and releases all mmemory associated with
* this class.
* ***********************************************************/
- ~transciever();
+ ~transceiver();
/**************************************************************
* gets the next message from the socket. If no messages are
* ready, blocks util one arrives.
@@ -91,18 +91,18 @@
/**************************************************************
* Exceptions which may be thrown for external resulution.
* ***********************************************************/
- // parent of all transciever exceptions
- POCO_DECLARE_EXCEPTION(transciever, general_exception, Poco::Exception)
+ // parent of all transceiver exceptions
+ POCO_DECLARE_EXCEPTION(transceiver, general_exception, Poco::Exception)
// thrown if send fails due to timeout.
- POCO_DECLARE_EXCEPTION(transciever, send_timeout, general_exception)
+ POCO_DECLARE_EXCEPTION(transceiver, send_timeout, general_exception)
// thrown in the case of a fault while in get()
- POCO_DECLARE_EXCEPTION(transciever, get_fault, general_exception)
+ POCO_DECLARE_EXCEPTION(transceiver, get_fault, general_exception)
// Thrown if the socket is closed due to an unrecoverable date error.
- POCO_DECLARE_EXCEPTION(transciever, unrecoverable_data_error, general_exception)
+ POCO_DECLARE_EXCEPTION(transceiver, unrecoverable_data_error, general_exception)
// Thrown if the socket is closed due to too many errors in a row
- POCO_DECLARE_EXCEPTION(transciever, consecutive_error_overrun, general_exception)
+ POCO_DECLARE_EXCEPTION(transceiver, consecutive_error_overrun, general_exception)
protected:
- const std::string logname = "transciever:";
+ const std::string logname = "transceiver:";
unsigned int send_time_limit;
bool attempt_recovery;
unsigned int error_run_limit;
@@ -124,4 +124,4 @@
} // namespace nrtb
-#endif //nrtb_transciever_h
\ No newline at end of file
+#endif //nrtb_transceiver_h
\ No newline at end of file
=== renamed file 'common/transciever/transciever_test.cpp' => 'common/transceiver/transceiver_test.cpp'