forked from NTDLS/NSWFL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNSWFL_Network.h
29 lines (24 loc) · 1.21 KB
/
NSWFL_Network.h
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
26
27
28
29
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright © NetworkDLS 2010, All rights reserved
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef _NSWFL_NETWORK_H_
#define _NSWFL_NETWORK_H_
//#include <ws2tcpip.h>
namespace NSWFL {
namespace Network {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifdef VER_PRODUCTMAJORVERSION
#if VER_PRODUCTMAJORVERSION <= 6#if VER_PRODUCTMAJORVERSION <= 6
int legacy_inet_pton(int af, const char *src, void *dst);
const char *legacy_inet_ntop(int af, const void *src, char *dst, int size);
#endif
#endif
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
} //namespace::Network
} //namespace::NSWFL
#endif