Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 3.09 KB

WSACleanup.md

File metadata and controls

66 lines (50 loc) · 3.09 KB

Home

Function name : WSACleanup

Group: Windows Sockets 2 (Winsock) - Library: ws2_32


The WSACleanup function terminates use of the Ws2_32.dll.


Code examples:

How to build UDP responder
Winsock: initializing the service in the VFP application
Winsock: retrieving the standard host name and IP address for the local machine
Winsock: retrieving information from a host database for a given host name
Winsock: retrieving the host information corresponding to a network address
Winsock: how to retrieve a service information corresponding to a port
Winsock: how to retrieve a service information corresponding to a service name
Winsock: retrieving information about available transport protocols
Winsock: how to retrieve the protocol information corresponding to a protocol name
Winsock: how to retrieve the protocol information corresponding to a protocol number
Winsock: creating a socket that is bound to a specific service provider
Retrieving the IP-to-physical address mapping table
Winsock: reading and setting socket options
Retrieving the interface–to–IP address mapping table
How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)
Winsock: retrieving Web pages using sockets (HTTP, port 80)
Winsock: sending email messages (SMTP, port 25)
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Winsock: reading email messages (POP3, port 110)
Winsock: connecting to a news server (NNTP, port 119)
How to create non-blocking Winsock server
A client for testing non-blocking Winsock server
How to ping a remote site using ICMP API calls
Winsock: resolving an address to a host name

Declaration:

int WSACleanup (void);  

FoxPro declaration:

DECLARE INTEGER WSACleanup IN ws2_32  

Parameters:

This function has no parameters.


Return value:

The return value is zero if the operation was successful. Otherwise, the value SOCKET_ERROR is returned, and a specific error number can be retrieved by calling WSAGetLastError.


Comments:

See also: WSAStartup.