Summary: | Port for the sever is not saved (enven during game) | ||
---|---|---|---|
Product: | [Applications] boson | Reporter: | Felix Seeger <felix.seeger> |
Component: | general | Assignee: | The Boson Team <boson-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | rivolaks |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Felix Seeger
2002-11-07 21:49:03 UTC
*** Bug 55752 has been marked as a duplicate of this bug. *** This is some kind of KGame/QSocket bug. It's a bit more complex, so it will require some time to be fixed. Problem is that QSocket is asynchron so when connectToHost() returns it is not yet connected. KGame does not yet use the connected() signal unfortunately. Only after that signal has been emitted QSocket returns a valid port number. The workaround is to store the port as a global static variable in the startup widget once we start to connect, but I want to commit that fix only once I have a real fix for this (which requires patching libkdegames) CU Andi I have now committed an update to both, boson and KGame which fixes this bug. To fix the asynchron-problem we can easily use signalClientConnected(). KGame::port() in a recent KGame version will provide the correct port, for older KGame versions we use a hack (thanks to Qt, which allows that :)). CU Andi |