mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Use the same port (8086) for both TCP and UDP traffic.
This commit is contained in:
parent
0e5a7263d9
commit
aa5259b20a
@ -1108,7 +1108,7 @@ void Profiler::Worker()
|
|||||||
#ifndef TRACY_NO_BROADCAST
|
#ifndef TRACY_NO_BROADCAST
|
||||||
m_broadcast = (UdpBroadcast*)tracy_malloc( sizeof( UdpBroadcast ) );
|
m_broadcast = (UdpBroadcast*)tracy_malloc( sizeof( UdpBroadcast ) );
|
||||||
new(m_broadcast) 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();
|
m_broadcast->~UdpBroadcast();
|
||||||
tracy_free( m_broadcast );
|
tracy_free( m_broadcast );
|
||||||
@ -1147,7 +1147,7 @@ void Profiler::Worker()
|
|||||||
if( t - lastBroadcast > 3000000000 ) // 3s
|
if( t - lastBroadcast > 3000000000 ) // 3s
|
||||||
{
|
{
|
||||||
lastBroadcast = t;
|
lastBroadcast = t;
|
||||||
m_broadcast->Send( 8087, &broadcastMsg, broadcastLen );
|
m_broadcast->Send( 8086, &broadcastMsg, broadcastLen );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -283,7 +283,7 @@ int main( int argc, char** argv )
|
|||||||
if( !broadcastListen )
|
if( !broadcastListen )
|
||||||
{
|
{
|
||||||
broadcastListen = new tracy::UdpListen();
|
broadcastListen = new tracy::UdpListen();
|
||||||
if( !broadcastListen->Listen( 8087 ) )
|
if( !broadcastListen->Listen( 8086 ) )
|
||||||
{
|
{
|
||||||
delete broadcastListen;
|
delete broadcastListen;
|
||||||
broadcastListen = nullptr;
|
broadcastListen = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user