mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-12-01 01:51:53 +00:00
Add server sent events, change vfs structure, dark mode error pages and dark mode anonydrop
This commit is contained in:
@@ -739,6 +739,7 @@ namespace Tesses::Framework::Streams {
|
||||
}
|
||||
void NetworkStream::SetReusePort(bool reuse)
|
||||
{
|
||||
#if !defined(_WIN32)
|
||||
if(!this->success) return;
|
||||
int no = reuse ? 1 : 0;
|
||||
if (NETWORK_SETSOCKOPT(sock, SOL_SOCKET, SO_REUSEPORT, (const char*)&no, sizeof(no)) != 0)
|
||||
@@ -748,6 +749,7 @@ namespace Tesses::Framework::Streams {
|
||||
NETWORK_CLOSE(this->sock);
|
||||
|
||||
}
|
||||
#endif
|
||||
}
|
||||
void NetworkStream::SetMulticastTTL(uint8_t ttl)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user