mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
fix socket reuse logic in UdpListen::Listen()
This commit is contained in:
parent
1491e5d708
commit
83b52d9a20
@ -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…
x
Reference in New Issue
Block a user