blob: 42ea5c089430f8a8cb8a5bf33119aeb568a899d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include "cstdafx.h"
#include <util/system/compat.h>
#include <util/network/init.h>
#if defined(_unix_)
#include <netdb.h>
#include <fcntl.h>
#elif defined(_win_)
#include <winsock2.h>
using socklen_t = int;
#endif
#include <util/generic/ptr.h>
template <class T>
static const T* BreakAliasing(const void* f) {
return (const T*)f;
}
template <class T>
static T* BreakAliasing(void* f) {
return (T*)f;
}
|