Revision: 6541
http://playerstage.svn.sourceforge.net/playerstage/?rev=6541&view=rev
Author: thjc
Date: 2008-06-11 13:47:32 -0700 (Wed, 11 Jun 2008)
Log Message:
-----------
reordered loop so connection attempt happens first
Modified Paths:
--------------
code/player/branches/release-2-1-patches/server/drivers/opaque/tcpstream.cc
Modified:
code/player/branches/release-2-1-patches/server/drivers/opaque/tcpstream.cc
===================================================================
--- code/player/branches/release-2-1-patches/server/drivers/opaque/tcpstream.cc
2008-06-11 20:47:06 UTC (rev 6540)
+++ code/player/branches/release-2-1-patches/server/drivers/opaque/tcpstream.cc
2008-06-11 20:47:32 UTC (rev 6541)
@@ -300,12 +300,7 @@
// The main loop; interact with the device here
for(;;)
{
- Wait(1);
-
- // Process incoming messages. TCPStream::ProcessMessage() is
- // called on each message.
- ProcessMessages();
-
+ // we read/connect first otherwise we we wait when we have no data
connection
if (connected)
{
// Reads the data from the tcp server and then publishes it
@@ -316,6 +311,11 @@
PLAYER_MSG0(2, "TCP reconnecting");
OpenTerm();
}
+
+ PLAYER_MSG1(2, "TCP Main loop running (%d)",device_addr.index);
+ Wait(1);
+
+ ProcessMessages();
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit