mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Merge pull request #624 from slomp/slomp/udp-broadcast-fix
Fixes around UDP broadcast
This commit is contained in:
commit
60a3a85069
@ -678,10 +678,10 @@ bool UdpListen::Listen( uint16_t port )
|
|||||||
#endif
|
#endif
|
||||||
#if defined _WIN32
|
#if defined _WIN32
|
||||||
unsigned long reuse = 1;
|
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
|
#else
|
||||||
int reuse = 1;
|
int reuse = 1;
|
||||||
setsockopt( m_sock, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof( reuse ) );
|
setsockopt( sock, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof( reuse ) );
|
||||||
#endif
|
#endif
|
||||||
#if defined _WIN32
|
#if defined _WIN32
|
||||||
unsigned long broadcast = 1;
|
unsigned long broadcast = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user