因為需要
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