Browse Source

Pro Tip: Make sure it compiles before checking in...

Chris Brunner 16 years ago
parent
commit
949ed7db7c

+ 5 - 5
pandatool/src/mayaprogs/mayaToEgg_client.cxx

@@ -27,8 +27,8 @@ MayaToEggClient() :
   SomethingToEgg("Maya", ".mb")
 {
   qManager = new QueuedConnectionManager();
-  qReader = new QueuedConnectionReader(manager, 0);
-  qWriter = new ConnectionWriter(manager, 0);
+  qReader = new QueuedConnectionReader(qManager, 0);
+  qWriter = new ConnectionWriter(qManager, 0);
   // We assume the server is local and on port 4242
   server.set_host("localhost", 4242);
 }
@@ -42,7 +42,7 @@ int main(int argc, char *argv[]) {
 
   MayaToEggClient prog;
   // Open a connection to the server process
-  PT(Connection) con = prog.manager->open_TCP_client_connection(prog.server,0);
+  PT(Connection) con = prog.qManager->open_TCP_client_connection(prog.server,0);
   if (con.is_null()) {
     nout << "port opened fail";
   }
@@ -72,8 +72,8 @@ int main(int argc, char *argv[]) {
   nout << "sending datagram\n";
   
   // Send it and close the connection
-  prog.writer->send(datagram, con);
-  prog.manager->close_connection(con);
+  prog.qWriter->send(datagram, con);
+  prog.qManager->close_connection(con);
   return 0;
 }
 

+ 3 - 3
pandatool/src/mayaprogs/mayaToEgg_client.h

@@ -28,9 +28,9 @@ class MayaToEggClient : public SomethingToEgg {
 public:
   MayaToEggClient();
 
-  QueuedConnectionManager *manager;
-  QueuedConnectionReader *reader;
-  ConnectionWriter *writer;
+  QueuedConnectionManager *qManager;
+  QueuedConnectionReader *qReader;
+  ConnectionWriter *qWriter;
   NetAddress server;
 };