Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.98 KB

inet_ntoa.md

File metadata and controls

53 lines (40 loc) · 1.98 KB

Home

Function name : inet_ntoa

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


The inet_ntoa function converts an (Ipv4) Internet network address into a string in Internet standard dotted format.


Code examples:

How to build UDP responder
Winsock: retrieving information from a host database for a given host name
Winsock: changing the byte ordering
Retrieving the IP-to-physical address mapping table
Retrieving the interface–to–IP address mapping table
Retrieving the User Datagram Protocol (UDP) listener table
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
How to ping a remote site using ICMP API calls

Declaration:

char FAR * inet_ntoa(
  struct   in_addr in
);  

FoxPro declaration:

DECLARE STRING inet_ntoa IN ws2_32;
	INTEGER in_addr  

Parameters:

in [in] Pointer to an in_addr structure that represents an Internet host address.


Return value:

If no error occurs, inet_ntoa returns a character pointer to a static buffer containing the text address in standard "."" notation. Otherwise, it returns NULL.