Networking functions allow the user to communicate with remote
host via different network protocols. Also this API implements SMTP
and POP3 protocols.
General TCP/IP related functions
||Retrieves host IP address corresponding to a host
name from a host database.
||Returns local host name.
||Returns the name of the DNS domain assigned to the local
computer. If the local computer is a node in a cluster, the DNS
domain name of the cluster virtual server.
||Returns the local name for a socket (IP address and
||Returns host name resolved by Domain Name System
(DNS) by IP address.
||Provides the generic query interface to the DNS
HTTP functions (GET, POST)
||"Pings" a Web site that is known to be up to check
whether a valid Internet Connection can be made.
||Retrieves the content of the Web page.
||Sends HTTP POST request to the Web server.
SMTP and POP3 functions
||Sends email with attachment.
||Sends email in HTML format.
||Call this function to test a SMTP mail server's
ability to accept incoming sessions, as well as its level of
||This function opens a connection to the specified
POP3 server and waits for the Server to respond with a standard
"Service Ready for a new user" (code 220) message.
||Retrieves the statistics for the Mailbox by issuing
the POP3 "STAT" command.
||Performs an ICMP ping.
||Performs an ICMP trace route.
||Sends an Address Resolution Protocol (ARP) request
to obtain the physical address that corresponds to the specified
destination IPv4 address.
Shared network resources (Microsoft networking)
Working with connected stream (TCP) and datagram (UDP)
Sockets is a method for communication between a client
program and a server program in a network. A socket is defined as
"the endpoint in a connection." Sockets can also be used for
communication between processes within the same computer.
- Stream sockets provide for a data flow without record
boundaries: a stream of bytes that can be bidirectional (the
application is full duplex: it can both transmit and receive
through the socket). Streams can be relied upon to deliver
sequenced, unduplicated data. ("Sequenced" means that packets are
delivered in the order sent. "Unduplicated" means that you get a
particular packet only once.) Receipt of stream messages is
guaranteed, and streams are well suited to handling large amounts
Stream sockets are preferable to datagram sockets when the data
must be guaranteed to arrive and when data size is large.
- Datagram sockets support a bidirectional data flow that
is not guaranteed to be sequenced or unduplicated. Datagram's also
are not guaranteed to be reliable; they can fail to arrive.
Datagram data may arrive out of order and possibly duplicated, but
record boundaries in the data are preserved, as long as the records
are smaller than the receiver's internal size limit. You are
responsible for managing sequencing and reliability. Datagram's are
"connectionless", that is, no explicit connection is established;
you send a datagram message to a specified socket and you can
receive messages from a specified socket.
An example of a datagram socket is an application that keeps system
clocks on the network synchronized. This illustrates an additional
capability of datagram sockets in at least some settings:
broadcasting messages to a large number of network addresses.
Datagram sockets are better than stream sockets for record-oriented
||Establishes a stream TCP connection with
destination host specified by IP address and port.
||Opens a datagram (UDP) socket on specific
||Sends a TCP packet containing the given data via
established TCP connection.
||Sends a datagram (UDP) packet containing the given
data to the specified host/port.
||Determines if any data can be read from specified
||Reads incoming data from connected stream (TCP)
||Reads incoming data on a datagram socket and
capture the address and port from which the data was sent.
||Releases the socket descriptor.accept a connection
on a socket.
||Creates TCP server socket and starts listening for incoming
||Accepts client connection on a TCP server socket.
||Sets a socket option.