In Windows, Microsoft has encapsulated the Internet Protocol and the TCP and UDP protocol layers into the Windows Sockets Layer, or "Winsock". Winsock allows an application to send datagrams using either TCP or UDP without having to do low-level programming to create IP datagram packets, deal with receipts and acknowledgments, or reassemble fragmented datagrams.
PowerBASIC further encapsulates the process by handling DNS resolution of IP addresses, and presents statements familiar to the programming model used by BASIC programmers. You are free to concentrate on the data being sent and ignore the details of sending it.
PowerBASIC requires version 2.0 or later of Winsock.
The Internet Protocol (IP)
User Datagram Protocol (UDP)
Transmission Control Protocol (TCP)
Request for Comments (RFC)
TCP clients and servers
Simple Mail Transfer Protocol (SMTP)
An ECHO client and server using TCP