Update of /cvsroot/playerstage/code/player/client_libs/libplayerc++
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2848/client_libs/libplayerc++

Modified Files:
        playerclient.h 
Log Message:
added reconnect logic to libplayerc, and appropriate methods to libplayerc++

Index: playerclient.h
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/client_libs/libplayerc++/playerclient.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** playerclient.h      5 May 2006 06:20:00 -0000       1.22
--- playerclient.h      13 Sep 2006 18:40:16 -0000      1.23
***************
*** 143,146 ****
--- 143,163 ----
      bool Peek(uint timeout=0);
  
+     /// @brief Set connection retry limit, which is the number of times
+     /// that we'll try to reconnect to the server after a socket error.
+     /// Set to -1 for inifinite retry.
+     void SetRetryLimit(int limit) { 
playerc_client_set_retry_limit(this->mClient,limit); }
+ 
+     /// @brief Get connection retry limit, which is the number of times
+     /// that we'll try to reconnect to the server after a socket error.
+     int GetRetryLimit() { return(this->mClient->retry_limit); }
+ 
+     /// @brief Set connection retry time, which is number of seconds to
+     /// wait between reconnection attempts.
+     void SetRetryTime(double time) { 
playerc_client_set_retry_time(this->mClient,time); }
+ 
+     /// @brief Get connection retry time, which is number of seconds to
+     /// wait between reconnection attempts.
+     double GetRetryTime() { return(this->mClient->retry_time); }
+ 
      /// @brief A blocking Read
      ///


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to