win32.winsock2

Automatically imported and edited from the druntime module core.sys.windows.winsock2 for the auto-generated win32 package.

Members

Aliases

LPWSADATA
alias LPWSADATA = WSADATA*
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
LPWSAOVERLAPPED
alias LPWSAOVERLAPPED = WSAOVERLAPPED*
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
LPWSAOVERLAPPED_COMPLETION_ROUTINE
alias LPWSAOVERLAPPED_COMPLETION_ROUTINE = void function(uint, uint, LPWSAOVERLAPPED, uint)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
PSOCKADDR, LPSOCKADDR
alias PSOCKADDR, LPSOCKADDR = SOCKADDR*
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
PSOCKADDR_IN, LPSOCKADDR_IN
alias PSOCKADDR_IN, LPSOCKADDR_IN = SOCKADDR_IN*
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
PSOCKADDR_STORAGE
alias PSOCKADDR_STORAGE = SOCKADDR_STORAGE*
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
SOCKADDR
alias SOCKADDR = sockaddr
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
SOCKADDR_IN
alias SOCKADDR_IN = sockaddr_in
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
SOCKADDR_STORAGE
alias SOCKADDR_STORAGE = sockaddr_storage
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
SOCKET
alias SOCKET = size_t
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
fd_set
alias fd_set = fd_set_custom!FD_SETSIZE
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
socklen_t
alias socklen_t = int
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.

Enums

AF_UNSPEC
anonymousenum AF_UNSPEC
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
AI_PASSIVE
anonymousenum AI_PASSIVE
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
EAI_NONAME
anonymousenum EAI_NONAME
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
EWOULDBLOCK
anonymousenum EWOULDBLOCK
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
INADDR_ANY
anonymousenum INADDR_ANY
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
IPPROTO_IP
anonymousenum IPPROTO_IP
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
MSG_OOB
anonymousenum MSG_OOB
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
NI_NOFQDN
anonymousenum NI_NOFQDN
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
SD_RECEIVE
anonymousenum SD_RECEIVE
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
SOCK_STREAM
anonymousenum SOCK_STREAM
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
SOL_SOCKET
anonymousenum SOL_SOCKET
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
SO_DEBUG
anonymousenum SO_DEBUG
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
WSAEINTR
anonymousenum WSAEINTR
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.

Functions

FD_CLR
void FD_CLR(SOCKET fd, fd_set* set)
Undocumented in source. Be warned that the author may not have intended to support it.
FD_CREATE
fd_set* FD_CREATE(uint capacity)

Creates a new fd_set with the specified capacity.

FD_ISSET
int FD_ISSET(SOCKET fd, const(fd_set)* set)
Undocumented in source. Be warned that the author may not have intended to support it.
FD_SET
void FD_SET(SOCKET fd, fd_set* set)
Undocumented in source. Be warned that the author may not have intended to support it.
FD_ZERO
void FD_ZERO(fd_set* set)
Undocumented in source. Be warned that the author may not have intended to support it.
WSACleanup
int WSACleanup()
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
WSAGetLastError
int WSAGetLastError()
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
WSAIoctl
int WSAIoctl(SOCKET s, uint dwIoControlCode, void* lpvInBuffer, uint cbInBuffer, void* lpvOutBuffer, uint cbOutBuffer, uint* lpcbBytesReturned, LPWSAOVERLAPPED lpOverlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
WSAStartup
int WSAStartup(ushort wVersionRequested, LPWSADATA lpWSAData)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
accept
SOCKET accept(SOCKET s, sockaddr* addr, socklen_t* addrlen)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
bind
int bind(SOCKET s, const(sockaddr)* name, socklen_t namelen)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
closesocket
int closesocket(SOCKET s)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
connect
int connect(SOCKET s, const(sockaddr)* name, socklen_t namelen)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
freeaddrinfo
void freeaddrinfo(addrinfo* ai)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
getaddrinfo
int getaddrinfo(const(char)* nodename, const(char)* servname, const(addrinfo)* hints, addrinfo** res)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
gethostbyaddr
hostent* gethostbyaddr(const(void)* addr, int len, int type)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
gethostbyname
hostent* gethostbyname(char* name)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
gethostname
int gethostname(char* name, int namelen)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
getnameinfo
int getnameinfo(const(sockaddr)* sa, socklen_t salen, char* host, uint hostlen, char* serv, uint servlen, int flags)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
getpeername
int getpeername(SOCKET s, sockaddr* name, socklen_t* namelen)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
getprotobyname
protoent* getprotobyname(char* name)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
getprotobynumber
protoent* getprotobynumber(int number)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
getservbyname
servent* getservbyname(char* name, char* proto)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
getservbyport
servent* getservbyport(int port, char* proto)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
getsockname
int getsockname(SOCKET s, sockaddr* name, socklen_t* namelen)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
getsockopt
int getsockopt(SOCKET s, int level, int optname, void* optval, socklen_t* optlen)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
htonl
uint htonl(uint x)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
htons
ushort htons(ushort x)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
inet_addr
uint inet_addr(char* cp)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
inet_ntoa
char* inet_ntoa(in_addr ina)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
ioctlsocket
int ioctlsocket(SOCKET s, int cmd, uint* argp)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
listen
int listen(SOCKET s, int backlog)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
ntohl
uint ntohl(uint x)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
ntohs
ushort ntohs(ushort x)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
recv
int recv(SOCKET s, void* buf, int len, int flags)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
recvfrom
int recvfrom(SOCKET s, void* buf, int len, int flags, sockaddr* from, socklen_t* fromlen)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
select
int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* errorfds, const(timeval)* timeout)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
send
int send(SOCKET s, const(void)* buf, int len, int flags)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
sendto
int sendto(SOCKET s, const(void)* buf, int len, int flags, const(sockaddr)* to, socklen_t tolen)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
setsockopt
int setsockopt(SOCKET s, int level, int optname, const(void)* optval, socklen_t optlen)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
shutdown
int shutdown(SOCKET s, int how)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
socket
SOCKET socket(int af, int type, int protocol)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.

Manifest constants

IOC_VENDOR
enum IOC_VENDOR;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
NI_MAXHOST
enum NI_MAXHOST;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
NI_MAXSERV
enum NI_MAXSERV;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
SIO_KEEPALIVE_VALS
enum SIO_KEEPALIVE_VALS;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
WSABASEERR
enum WSABASEERR;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
WSADESCRIPTION_LEN
enum WSADESCRIPTION_LEN;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
WSASYS_STATUS_LEN
enum WSASYS_STATUS_LEN;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.

Structs

WSADATA
struct WSADATA
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
WSAOVERLAPPED
struct WSAOVERLAPPED
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
addrinfo
struct addrinfo
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
fd_set_custom
struct fd_set_custom(uint SETSIZE)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
hostent
struct hostent
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
linger
struct linger
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
protoent
struct protoent
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
servent
struct servent
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
sockaddr
struct sockaddr
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
sockaddr_in
struct sockaddr_in
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
sockaddr_in6
struct sockaddr_in6
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
sockaddr_storage
struct sockaddr_storage
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
tcp_keepalive
struct tcp_keepalive
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
timeval
struct timeval
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.

Unions

in6_addr
union in6_addr
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
in_addr
union in_addr
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.

Variables

FD_SETSIZE
enum int FD_SETSIZE;

Default FD_SETSIZE value. In C/C++, it is redefinable by #define-ing the macro before #include-ing winsock.h. In D, use the FD_CREATE function to allocate a fd_set of an arbitrary size.

FIONBIO
enum int FIONBIO;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
IN6ADDR_ANY
enum in6_addr IN6ADDR_ANY;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
IN6ADDR_LOOPBACK
enum in6_addr IN6ADDR_LOOPBACK;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
INET6_ADDRSTRLEN
enum int INET6_ADDRSTRLEN;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
INET_ADDRSTRLEN
enum int INET_ADDRSTRLEN;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
INVALID_SOCKET
enum SOCKET INVALID_SOCKET;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
IOCPARM_MASK
enum int IOCPARM_MASK;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
IOC_IN
enum int IOC_IN;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
SOCKET_ERROR
enum int SOCKET_ERROR;
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.

Meta