Skip to content

Commit

Permalink
Merge pull request #624 from slomp/slomp/udp-broadcast-fix
Browse files Browse the repository at this point in the history
Fixes around UDP broadcast
  • Loading branch information
wolfpld authored Sep 21, 2023
2 parents 0341819 + 83b52d9 commit 60a3a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/common/TracySocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,10 +678,10 @@ bool UdpListen::Listen( uint16_t port )
#endif
#if defined _WIN32
unsigned long reuse = 1;
setsockopt( m_sock, SOL_SOCKET, SO_REUSEADDR, (const char*)&reuse, sizeof( reuse ) );
setsockopt( sock, SOL_SOCKET, SO_REUSEADDR, (const char*)&reuse, sizeof( reuse ) );
#else
int reuse = 1;
setsockopt( m_sock, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof( reuse ) );
setsockopt( sock, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof( reuse ) );
#endif
#if defined _WIN32
unsigned long broadcast = 1;
Expand Down

0 comments on commit 60a3a85

Please sign in to comment.