1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-14 01:54:07 +02:00

Merge branch 'stable'

This commit is contained in:
Jeff Mitchell
2011-03-28 17:26:06 -04:00
7 changed files with 49 additions and 13 deletions

View File

@@ -16,10 +16,10 @@
<item> <item>
<title>Version 0.0.2 (Tomahawk Player Beta - It Lives?)</title> <title>Version 0.0.2 (Tomahawk Player Beta - It Lives?)</title>
<sparkle:releaseNotesLink> <sparkle:releaseNotesLink>
https://github.com/tomahawk-player/tomahawk/raw/stable/ChangeLog https://github.com/tomahawk-player/tomahawk/raw/0.0.2/ChangeLog
</sparkle:releaseNotesLink> </sparkle:releaseNotesLink>
<pubDate>Mon, 28 Mar 2011 06:13:01 +0100</pubDate> <pubDate>Mon, 28 Mar 2011 06:13:01 +0100</pubDate>
<enclosure url="http://download.tomahawk-player.org/sparkle/updates/tomahawk-0.0.2.tar.bz2" sparkle:version="0.0.2" length="19835237" type="application/octet-stream" sparkle:dsaSignature="MCwCFGb6yhKUO3+lH3eNaURvwtctLVMUAhQM8mp8yEwcU3ZoaJMTqb387dYccA==" /> <enclosure url="http://download.tomahawk-player.org/sparkle/updates/tomahawk-0.0.2.tar.bz2" sparkle:version="0.0.2" length="19831287" type="application/octet-stream" sparkle:dsaSignature="MC0CFC0Hwq9x9BWMF/8sA+c5KfzKoBzFAhUAk9r0IJlxQf9qEJk4IL6bbTWTiuI=" />
</item> </item>
</channel> </channel>
</rss> </rss>

View File

@@ -16,10 +16,10 @@
<item> <item>
<title>Version 0.0.2 (Tomahawk Player - It Lives!)</title> <title>Version 0.0.2 (Tomahawk Player - It Lives!)</title>
<sparkle:releaseNotesLink> <sparkle:releaseNotesLink>
https://github.com/tomahawk-player/tomahawk/raw/stable/ChangeLog https://github.com/tomahawk-player/tomahawk/raw/0.0.2/ChangeLog
</sparkle:releaseNotesLink> </sparkle:releaseNotesLink>
<pubDate>Mon, 28 Mar 2011 06:13:01 +0100</pubDate> <pubDate>Mon, 28 Mar 2011 06:13:01 +0100</pubDate>
<enclosure url="http://download.tomahawk-player.org/sparkle/updates/tomahawk-0.0.2.tar.bz2" sparkle:version="0.0.2" length="19835237" type="application/octet-stream" sparkle:dsaSignature="MCwCFGb6yhKUO3+lH3eNaURvwtctLVMUAhQM8mp8yEwcU3ZoaJMTqb387dYccA==" /> <enclosure url="http://download.tomahawk-player.org/sparkle/updates/tomahawk-0.0.2.tar.bz2" sparkle:version="0.0.2" length="19831287" type="application/octet-stream" sparkle:dsaSignature="MC0CFC0Hwq9x9BWMF/8sA+c5KfzKoBzFAhUAk9r0IJlxQf9qEJk4IL6bbTWTiuI=" />
</item> </item>
</channel> </channel>
</rss> </rss>

View File

@@ -8,10 +8,18 @@
<item> <item>
<title>Version 0.0.1 (Tomahawk Player Beta - It Lives?)</title> <title>Version 0.0.1 (Tomahawk Player Beta - It Lives?)</title>
<sparkle:releaseNotesLink> <sparkle:releaseNotesLink>
https://github.com/tomahawk-player/tomahawk/raw/stable/ChangeLog https://github.com/tomahawk-player/tomahawk/raw/0.0.1/ChangeLog
</sparkle:releaseNotesLink> </sparkle:releaseNotesLink>
<pubDate>Fri, 25 Mar 2011 00:00:01 +0100</pubDate> <pubDate>Fri, 25 Mar 2011 00:00:01 +0100</pubDate>
<enclosure url="http://download.tomahawk-player.org/tomahawk-beta-0.0.1.exe" sparkle:version="0.0.1" /> <enclosure url="http://download.tomahawk-player.org/tomahawk-beta-0.0.1.exe" sparkle:version="0.0.1" />
</item> </item>
<item>
<title>Version 0.0.2 (Tomahawk Player Beta - It Lives?)</title>
<sparkle:releaseNotesLink>
https://github.com/tomahawk-player/tomahawk/raw/0.0.2/ChangeLog
</sparkle:releaseNotesLink>
<pubDate>Mon, 28 Mar 2011 05:00:02 +0100</pubDate>
<enclosure url="http://download.tomahawk-player.org/tomahawk-0.0.2.exe" sparkle:version="0.0.2" />
</item>
</channel> </channel>
</rss> </rss>

View File

@@ -11,7 +11,15 @@
https://github.com/tomahawk-player/tomahawk/raw/0.0.1/ChangeLog https://github.com/tomahawk-player/tomahawk/raw/0.0.1/ChangeLog
</sparkle:releaseNotesLink> </sparkle:releaseNotesLink>
<pubDate>Fri, 25 Mar 2011 00:00:01 +0100</pubDate> <pubDate>Fri, 25 Mar 2011 00:00:01 +0100</pubDate>
<enclosure url="http://download.tomahawk-player.org/tomahawk-0.0.1.exe" sparkle:version="0.0.1" /> <enclosure url="http://download.tomahawk-player.org/tomahawk-beta-0.0.1.exe" sparkle:version="0.0.1" />
</item>
<item>
<title>Version 0.0.2 (Tomahawk Player - It Lives!)</title>
<sparkle:releaseNotesLink>
https://github.com/tomahawk-player/tomahawk/raw/0.0.2/ChangeLog
</sparkle:releaseNotesLink>
<pubDate>Mon, 28 Mar 2011 05:00:02 +0100</pubDate>
<enclosure url="http://download.tomahawk-player.org/tomahawk-0.0.2.exe" sparkle:version="0.0.2" />
</item> </item>
</channel> </channel>
</rss> </rss>

View File

@@ -92,17 +92,30 @@ bool
Servent::startListening( QHostAddress ha, bool upnp, int port ) Servent::startListening( QHostAddress ha, bool upnp, int port )
{ {
m_port = port; m_port = port;
// try listening on one port higher as well, to aid debugging int defPort = TomahawkSettings::instance()->defaultPort();
// and let you run 2 instances easily // Listen on both the selected port and, if not the same, the default port -- the latter sometimes necessary for zeroconf
if( !listen( ha, m_port ) && !listen( ha, ++m_port ) ) // TODO: only listen on both when zeroconf sip is enabled
// TODO: use a real zeroconf system instead of a simple UDP broadcast?
if( !listen( ha, m_port ) )
{ {
qDebug() << "Failed to listen on port" << m_port; bool defPortAlso = false;
qDebug() << "Error string is " << errorString(); if( m_port != defPort )
return false; defPortAlso = listen( ha, defPort );
if( !defPortAlso )
{
qDebug() << "Failed to listen on both port " << m_port << " and port " << defPort;
qDebug() << "Error string is " << errorString();
return false;
}
else
qDebug() << "Servent listening on port " << defPort << " servent thread:" << thread();
} }
else else
{ {
qDebug() << "Servent listening on port" << m_port << " servent thread:" << thread(); bool defPortAlso = listen( ha, defPort );
qDebug() << "Servent listening on port " << m_port << " servent thread:" << thread();
if( defPortAlso )
qDebug() << "Servent also listening on port " << defPort << " servent thread:" << thread();
} }
// --lanhack means to advertise your LAN IP over jabber as if it were externallyVisible // --lanhack means to advertise your LAN IP over jabber as if it were externallyVisible

View File

@@ -377,6 +377,12 @@ TomahawkSettings::setExternalHostname(const QString& externalHostname)
setValue( "network/external-hostname", externalHostname ); setValue( "network/external-hostname", externalHostname );
} }
int
TomahawkSettings::defaultPort() const
{
return 50210;
}
int int
TomahawkSettings::externalPort() const TomahawkSettings::externalPort() const
{ {

View File

@@ -95,6 +95,7 @@ public:
QString externalHostname() const; QString externalHostname() const;
void setExternalHostname( const QString& externalHostname ); void setExternalHostname( const QString& externalHostname );
int defaultPort() const;
int externalPort() const; int externalPort() const;
void setExternalPort( int externalPort ); void setExternalPort( int externalPort );