← Back to team overview

nrtb-core team mailing list archive

[Branch ~fpstovall/nrtb/cpp_common] Rev 20: Added configuration data and documentation to the header file. Ready to start coding the class im...

 

------------------------------------------------------------
revno: 20
committer: fpstovall@xxxxxxxxx
branch nick: dev
timestamp: Wed 2010-12-29 21:54:43 -0500
message:
  Added configuration data and documentation to the header file. Ready to start coding the class implementation.
modified:
  common/transciever/transciever.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
=== modified file 'common/transciever/transciever.h'
--- common/transciever/transciever.h	2010-12-30 02:21:26 +0000
+++ common/transciever/transciever.h	2010-12-30 02:54:43 +0000
@@ -36,6 +36,14 @@
    * out_gpb is the channel wrapper for the outbound channel.
    * in_gpb is the channel wrapper for the inbound channel.
    * 
+   * 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)
+   * 
    * See https://blueprints.launchpad.net/nrtb/+spec/icp-spec for
    * specification this class implements.
    * ***************************************************************/
@@ -94,6 +102,10 @@
 	  // Thrown if the socket is closed due to too many errors in a row
 	  POCO_DECLARE_EXCEPTION(transciever, consecutive_error_overrun, general_exception)
 	protected:
+	  const std::string logname = "transciever:";
+	  unsigned int send_time_limit;
+	  bool attempt_recovery;
+	  unsigned int error_run_limit;
 	  // pointer to this class's logger instance
 	  Poco::Logger * log;
 	  // The socket used for communcation.