Browse Source

*** empty log message ***

David Rose 24 years ago
parent
commit
d35893417b
2 changed files with 5 additions and 5 deletions
  1. 4 4
      panda/src/pstatclient/pStatClient.I
  2. 1 1
      panda/src/pstatclient/pStatClient.h

+ 4 - 4
panda/src/pstatclient/pStatClient.I

@@ -66,8 +66,8 @@ get_max_rate() const {
 //               failure.
 //               failure.
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE bool PStatClient::
 INLINE bool PStatClient::
-connect(string hostname, int port) {
-  return get_global_pstats()->connect(hostname, port);
+connect(const string &hostname, int port) {
+  return get_global_pstats()->ns_connect(hostname, port);
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -77,7 +77,7 @@ connect(string hostname, int port) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE void PStatClient::
 INLINE void PStatClient::
 disconnect() {
 disconnect() {
-  get_global_pstats()->disconnect();
+  get_global_pstats()->ns_disconnect();
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -88,5 +88,5 @@ disconnect() {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE bool PStatClient::
 INLINE bool PStatClient::
 is_connected() {
 is_connected() {
-  return get_global_pstats()->is_connected();
+  return get_global_pstats()->ns_is_connected();
 }
 }

+ 1 - 1
panda/src/pstatclient/pStatClient.h

@@ -63,7 +63,7 @@ public:
   static PStatClient *get_global_pstats();
   static PStatClient *get_global_pstats();
 
 
 PUBLISHED:
 PUBLISHED:
-  INLINE static bool connect(string hostname = string(), int port = -1);
+  INLINE static bool connect(const string &hostname = string(), int port = -1);
   INLINE static void disconnect();
   INLINE static void disconnect();
   INLINE static bool is_connected();
   INLINE static bool is_connected();