因为需要
inet_ntop
函数,我要包含
Ws2tcpip.h
头文件.
要复制
const char *inet_ntop(int af, const void *restrict src, char *restrict dst, socklen_t size);
声明为
D
:
extern(C) const(char)* inet_ntop(int af, const(void)* src, char* dst, socklen_t size);
还需要:
alias socklen_t = ...;
alias socklen_t = int