Maik,
sorry for the long delay. The weather these days was too good to stay
inside :)
On Friday 06 October 2006 21:31, Maik Justus wrote:
> @Mathias Fröhlich
> Did you looked on this?
Yes, but I expect that the problem is something different.
We have at the moment a more or less crappy port/host handling for multiplayer
packets.
I think that must be cleaned up anyway.
At best I think that the multiplayermanager recieve code should move into
Network/multiplayer.cxx. Also the configuration of the appropriate sockets
can then happen in the same file.
I would expect that this would help much.
My guess is that your own computer will broadcast your own position packets to
a network where your own computer is already attached to. So you will see the
same plane twice.
May be the broadcast setting is implemented somehow different in plib's win32
code.
Can you tell me if removing the broadcast flag from the plib socket will help
(attached patch)?
Greetings
Mathias
Index: src/MultiPlayer/multiplaymgr.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/MultiPlayer/multiplaymgr.cxx,v
retrieving revision 1.10
diff -u -r1.10 multiplaymgr.cxx
--- src/MultiPlayer/multiplaymgr.cxx 10 Oct 2006 05:17:07 -0000 1.10
+++ src/MultiPlayer/multiplaymgr.cxx 10 Oct 2006 05:34:10 -0000
@@ -201,7 +201,6 @@
return false;
}
mSocket->setBlocking(false);
- mSocket->setBroadcast(true);
if (mSocket->bind(rxAddress.c_str(), rxPort) != 0) {
perror("bind");
SG_LOG( SG_NETWORK, SG_ALERT,
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel