Use the same port (8086) for both TCP and UDP traffic.

This commit is contained in:
Bartosz Taudul 2019-06-18 20:28:03 +02:00
parent 0e5a7263d9
commit aa5259b20a
2 changed files with 3 additions and 3 deletions

View File

@ -1108,7 +1108,7 @@ void Profiler::Worker()
#ifndef TRACY_NO_BROADCAST
m_broadcast = (UdpBroadcast*)tracy_malloc( sizeof( UdpBroadcast ) );
new(m_broadcast) UdpBroadcast();
if( !m_broadcast->Open( "255.255.255.255", "8087" ) )
if( !m_broadcast->Open( "255.255.255.255", "8086" ) )
{
m_broadcast->~UdpBroadcast();
tracy_free( m_broadcast );
@ -1147,7 +1147,7 @@ void Profiler::Worker()
if( t - lastBroadcast > 3000000000 ) // 3s
{
lastBroadcast = t;
m_broadcast->Send( 8087, &broadcastMsg, broadcastLen );
m_broadcast->Send( 8086, &broadcastMsg, broadcastLen );
}
}
}

View File

@ -283,7 +283,7 @@ int main( int argc, char** argv )
if( !broadcastListen )
{
broadcastListen = new tracy::UdpListen();
if( !broadcastListen->Listen( 8087 ) )
if( !broadcastListen->Listen( 8086 ) )
{
delete broadcastListen;
broadcastListen = nullptr;