winsock topic
Windows Socket Library
Windows Sockets 2 (Winsock) enables programmers to create advanced Internet, intranet, and other network-capable applications to transmit application data across the wire, independent of the network protocol being used. With Winsock, programmers are provided access to Windows networking capabilities such as multicast and Quality of Service (QoS).
Functions
-
accept(
int s, Pointer< winsockSOCKADDR> addr, Pointer<Int32> addrlen) → int - The accept function permits an incoming connection attempt on a socket.
-
accept(
int s, Pointer< winsockSOCKADDR> addr, Pointer<Int32> addrlen) → int - The accept function permits an incoming connection attempt on a socket.
-
bind(
int s, Pointer< winsockSOCKADDR> name, int namelen) → int - The bind function associates a local address with a socket.
-
bind(
int s, Pointer< winsockSOCKADDR> name, int namelen) → int - The bind function associates a local address with a socket.
-
closesocket(
int s) → int winsock - The closesocket function closes an existing socket.
-
closesocket(
int s) → int winsock - The closesocket function closes an existing socket.
-
connect(
int s, Pointer< winsockSOCKADDR> name, int namelen) → int - The connect function establishes a connection to a specified socket.
-
connect(
int s, Pointer< winsockSOCKADDR> name, int namelen) → int - The connect function establishes a connection to a specified socket.
-
GetAddrInfo(
Pointer< winsockUtf16> pNodeName, Pointer<Utf16> pServiceName, Pointer<ADDRINFO> pHints, Pointer<Pointer< ppResult) → intADDRINFO> > - The GetAddrInfoW function provides protocol-independent translation from a Unicode host name to an address.
-
GetAddrInfo(
Pointer< winsockUtf16> pNodeName, Pointer<Utf16> pServiceName, Pointer<ADDRINFO> pHints, Pointer<Pointer< ppResult) → intADDRINFO> > - The GetAddrInfoW function provides protocol-independent translation from a Unicode host name to an address.
-
gethostbyaddr(
Pointer< winsockUtf8> addr, int len, int type) → Pointer<HOSTENT> - The gethostbyaddr function retrieves the host information corresponding to a network address.
-
gethostbyaddr(
Pointer< winsockUtf8> addr, int len, int type) → Pointer<HOSTENT> - The gethostbyaddr function retrieves the host information corresponding to a network address.
-
gethostbyname(
Pointer< winsockUtf8> name) → Pointer<HOSTENT> - The gethostbyname function retrieves host information corresponding to a host name from a host database.
-
gethostbyname(
Pointer< winsockUtf8> name) → Pointer<HOSTENT> - The gethostbyname function retrieves host information corresponding to a host name from a host database.
-
gethostname(
Pointer< winsockUtf8> name, int namelen) → int - The gethostname function retrieves the standard host name for the local computer.
-
gethostname(
Pointer< winsockUtf8> name, int namelen) → int - The gethostname function retrieves the standard host name for the local computer.
-
getnameinfo(
Pointer< winsockSOCKADDR> pSockaddr, int SockaddrLength, Pointer<Utf8> pNodeBuffer, int NodeBufferSize, Pointer<Utf8> pServiceBuffer, int ServiceBufferSize, int Flags) → int - The getnameinfo function provides protocol-independent name resolution from an address to an ANSI host name and from a port number to the ANSI service name.
-
getnameinfo(
Pointer< winsockSOCKADDR> pSockaddr, int SockaddrLength, Pointer<Utf8> pNodeBuffer, int NodeBufferSize, Pointer<Utf8> pServiceBuffer, int ServiceBufferSize, int Flags) → int - The getnameinfo function provides protocol-independent name resolution from an address to an ANSI host name and from a port number to the ANSI service name.
-
getpeername(
int s, Pointer< winsockSOCKADDR> name, Pointer<Int32> namelen) → int - The getpeername function retrieves the address of the peer to which a socket is connected.
-
getpeername(
int s, Pointer< winsockSOCKADDR> name, Pointer<Int32> namelen) → int - The getpeername function retrieves the address of the peer to which a socket is connected.
-
getprotobyname(
Pointer< winsockUtf8> name) → Pointer<PROTOENT> - The getprotobyname function retrieves the protocol information corresponding to a protocol name.
-
getprotobyname(
Pointer< winsockUtf8> name) → Pointer<PROTOENT> - The getprotobyname function retrieves the protocol information corresponding to a protocol name.
-
getprotobynumber(
int number) → Pointer< winsockPROTOENT> - The getprotobynumber function retrieves protocol information corresponding to a protocol number.
-
getprotobynumber(
int number) → Pointer< winsockPROTOENT> - The getprotobynumber function retrieves protocol information corresponding to a protocol number.
-
getservbyname(
Pointer< winsockUtf8> name, Pointer<Utf8> proto) → Pointer<SERVENT> - The getservbyname function retrieves service information corresponding to a service name and protocol.
-
getservbyname(
Pointer< winsockUtf8> name, Pointer<Utf8> proto) → Pointer<SERVENT> - The getservbyname function retrieves service information corresponding to a service name and protocol.
-
getservbyport(
int port, Pointer< winsockUtf8> proto) → Pointer<SERVENT> - The getservbyport function retrieves service information corresponding to a port and protocol.
-
getservbyport(
int port, Pointer< winsockUtf8> proto) → Pointer<SERVENT> - The getservbyport function retrieves service information corresponding to a port and protocol.
-
getsockname(
int s, Pointer< winsockSOCKADDR> name, Pointer<Int32> namelen) → int - The getsockname function retrieves the local name for a socket.
-
getsockname(
int s, Pointer< winsockSOCKADDR> name, Pointer<Int32> namelen) → int - The getsockname function retrieves the local name for a socket.
-
getsockopt(
int s, int level, int optname, Pointer< winsockUtf8> optval, Pointer<Int32> optlen) → int - The getsockopt function retrieves a socket option.
-
getsockopt(
int s, int level, int optname, Pointer< winsockUtf8> optval, Pointer<Int32> optlen) → int - The getsockopt function retrieves a socket option.
-
htonl(
int hostlong) → int winsock - The htonl function converts a u_long from host to TCP/IP network byte order (which is big-endian).
-
htonl(
int hostlong) → int winsock - The htonl function converts a u_long from host to TCP/IP network byte order (which is big-endian).
-
htons(
int hostshort) → int winsock - The htons function converts a u_short from host to TCP/IP network byte order (which is big-endian).
-
htons(
int hostshort) → int winsock - The htons function converts a u_short from host to TCP/IP network byte order (which is big-endian).
-
inet_addr(
Pointer< winsockUtf8> cp) → int - The inet_addr function converts a string containing an IPv4 dotted-decimal address into a proper address for the IN_ADDR structure.
-
inet_addr(
Pointer< winsockUtf8> cp) → int - The inet_addr function converts a string containing an IPv4 dotted-decimal address into a proper address for the IN_ADDR structure.
-
inet_ntoa(
IN_ADDR in_) → Pointer< winsockUtf8> - The inet_ntoa function converts an (Ipv4) Internet network address into an ASCII string in Internet standard dotted-decimal format.
-
inet_ntoa(
IN_ADDR in_) → Pointer< winsockUtf8> - The inet_ntoa function converts an (Ipv4) Internet network address into an ASCII string in Internet standard dotted-decimal format.
-
inet_ntop(
int Family, Pointer< winsockNativeType> pAddr, Pointer<Utf8> pStringBuf, int StringBufSize) → Pointer<Utf8> - The inet_ntop function converts an IPv4 or IPv6 Internet network address into a string in Internet standard format.
-
inet_ntop(
int Family, Pointer< winsockNativeType> pAddr, Pointer<Utf8> pStringBuf, int StringBufSize) → Pointer<Utf8> - The inet_ntop function converts an IPv4 or IPv6 Internet network address into a string in Internet standard format.
-
ioctlsocket(
int s, int cmd, Pointer< winsockUint32> argp) → int - The ioctlsocket function controls the I/O mode of a socket.
-
ioctlsocket(
int s, int cmd, Pointer< winsockUint32> argp) → int - The ioctlsocket function controls the I/O mode of a socket.
-
listen(
int s, int backlog) → int winsock - The listen function places a socket in a state in which it is listening for an incoming connection.
-
listen(
int s, int backlog) → int winsock - The listen function places a socket in a state in which it is listening for an incoming connection.
-
ntohl(
int netlong) → int winsock - The ntohl function converts a u_long from TCP/IP network order to host byte order (which is little-endian on Intel processors).
-
ntohl(
int netlong) → int winsock - The ntohl function converts a u_long from TCP/IP network order to host byte order (which is little-endian on Intel processors).
-
ntohs(
int netshort) → int winsock - The ntohs function converts a u_short from TCP/IP network byte order to host byte order (which is little-endian on Intel processors).
-
ntohs(
int netshort) → int winsock - The ntohs function converts a u_short from TCP/IP network byte order to host byte order (which is little-endian on Intel processors).
-
recv(
int s, Pointer< winsockUtf8> buf, int len, int flags) → int - The recv function receives data from a connected socket or a bound connectionless socket.
-
recv(
int s, Pointer< winsockUtf8> buf, int len, int flags) → int - The recv function receives data from a connected socket or a bound connectionless socket.
-
recvfrom(
int s, Pointer< winsockUtf8> buf, int len, int flags, Pointer<SOCKADDR> from, Pointer<Int32> fromlen) → int - The recvfrom function receives a datagram, and stores the source address.
-
recvfrom(
int s, Pointer< winsockUtf8> buf, int len, int flags, Pointer<SOCKADDR> from, Pointer<Int32> fromlen) → int - The recvfrom function receives a datagram, and stores the source address.
-
select(
int nfds, Pointer< winsockFD_SET> readfds, Pointer<FD_SET> writefds, Pointer<FD_SET> exceptfds, Pointer<TIMEVAL> timeout) → int - The select function determines the status of one or more sockets, waiting if necessary, to perform synchronous I/O.
-
select(
int nfds, Pointer< winsockFD_SET> readfds, Pointer<FD_SET> writefds, Pointer<FD_SET> exceptfds, Pointer<TIMEVAL> timeout) → int - The select function determines the status of one or more sockets, waiting if necessary, to perform synchronous I/O.
-
send(
int s, Pointer< winsockUtf8> buf, int len, int flags) → int - The send function sends data on a connected socket.
-
send(
int s, Pointer< winsockUtf8> buf, int len, int flags) → int - The send function sends data on a connected socket.
-
sendto(
int s, Pointer< winsockUtf8> buf, int len, int flags, Pointer<SOCKADDR> to, int tolen) → int - The sendto function sends data to a specific destination.
-
sendto(
int s, Pointer< winsockUtf8> buf, int len, int flags, Pointer<SOCKADDR> to, int tolen) → int - The sendto function sends data to a specific destination.
-
shutdown(
int s, int how) → int winsock - The shutdown function disables sends or receives on a socket.
-
shutdown(
int s, int how) → int winsock - The shutdown function disables sends or receives on a socket.
-
socket(
int af, int type, int protocol) → int winsock - The socket function creates a socket that is bound to a specific transport service provider.
-
socket(
int af, int type, int protocol) → int winsock - The socket function creates a socket that is bound to a specific transport service provider.