Revision: 41759
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41759&view=rev
Author:   davidloman
Date:     2010-12-22 13:31:08 +0000 (Wed, 22 Dec 2010)

Log Message:
-----------
Converted PingMsg and PongMsg over to transporting 64bit values instead of 
32bit.  Needed to get proper startTime in ms.

Modified Paths:
--------------
    rt^3/trunk/include/PingMsg.h
    rt^3/trunk/include/PongMsg.h
    rt^3/trunk/src/libNet/netMsg/PingMsg.cxx
    rt^3/trunk/src/libNet/netMsg/PongMsg.cxx

Modified: rt^3/trunk/include/PingMsg.h
===================================================================
--- rt^3/trunk/include/PingMsg.h        2010-12-22 13:28:08 UTC (rev 41758)
+++ rt^3/trunk/include/PingMsg.h        2010-12-22 13:31:08 UTC (rev 41759)
@@ -26,17 +26,15 @@
 #ifndef __PINGMSG_H__
 #define __PINGMSG_H__
 
-#include "GenericFourBytesMsg.h"
+#include "GenericEightBytesMsg.h"
 #include <QtCore/QString>
 
-class PingMsg: public GenericFourBytesMsg {
+class PingMsg: public GenericEightBytesMsg {
 public:
-       PingMsg(quint32 startT);
+       PingMsg(quint64 startT);
        virtual ~PingMsg();
 
-       quint32 getStartTime();
-
-
+       quint64 getStartTime();
 };
 
 #endif /* __PINGMSG_H__ */

Modified: rt^3/trunk/include/PongMsg.h
===================================================================
--- rt^3/trunk/include/PongMsg.h        2010-12-22 13:28:08 UTC (rev 41758)
+++ rt^3/trunk/include/PongMsg.h        2010-12-22 13:31:08 UTC (rev 41759)
@@ -23,18 +23,18 @@
  *  Created on: Dec 20, 2010
  */
 
-#ifndef PONGMSG_H_
-#define PONGMSG_H_
+#ifndef __PONGMSG_H__
+#define __PONGMSG_H__
 
 #include "PingMsg.h"
-#include "GenericFourBytesMsg.h"
+#include "GenericEightBytesMsg.h"
 
-class PongMsg: public GenericFourBytesMsg {
+class PongMsg: public GenericEightBytesMsg {
 public:
        PongMsg(PingMsg* ping);
        virtual ~PongMsg();
 
-       quint32 getStartTime();
+       quint64 getStartTime();
 };
 
-#endif /* PONGMSG_H_ */
+#endif /* __PONGMSG_H__ */

Modified: rt^3/trunk/src/libNet/netMsg/PingMsg.cxx
===================================================================
--- rt^3/trunk/src/libNet/netMsg/PingMsg.cxx    2010-12-22 13:28:08 UTC (rev 
41758)
+++ rt^3/trunk/src/libNet/netMsg/PingMsg.cxx    2010-12-22 13:31:08 UTC (rev 
41759)
@@ -27,19 +27,16 @@
 #include "PingMsg.h"
 #include <sys/time.h>
 
-PingMsg::PingMsg(quint32 startT):GenericFourBytesMsg(PONG, startT) {
-}
+PingMsg::PingMsg(quint64 startT):GenericEightBytesMsg(PONG, startT) {}
 
-PingMsg::~PingMsg() {
-}
+PingMsg::~PingMsg() {}
 
-quint32
+quint64
 PingMsg::getStartTime()
 {
        return this->data;
 }
 
-
 /*
  * Local Variables:
  * tab-width: 8

Modified: rt^3/trunk/src/libNet/netMsg/PongMsg.cxx
===================================================================
--- rt^3/trunk/src/libNet/netMsg/PongMsg.cxx    2010-12-22 13:28:08 UTC (rev 
41758)
+++ rt^3/trunk/src/libNet/netMsg/PongMsg.cxx    2010-12-22 13:31:08 UTC (rev 
41759)
@@ -26,13 +26,13 @@
 #include "NetMsgTypes.h"
 #include "PongMsg.h"
 
-PongMsg::PongMsg(PingMsg* ping) : GenericFourBytesMsg(PING, 
ping->getStartTime()){
+PongMsg::PongMsg(PingMsg* ping) : GenericEightBytesMsg(PING, 
ping->getStartTime()){
 }
 
 PongMsg::~PongMsg() {
 }
 
-quint32
+quint64
 PongMsg::getStartTime(){
        return this->data;
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to