SwissDelphiCenter.ch : Introduction to sockets
whats new ¦ programming tips ¦ indy articles ¦ intraweb articles ¦ informations ¦ links ¦ interviews ¦ misc ¦ forum
kylix ¦ tutorials ¦ online shop ¦ photos ¦ Add&Win Game
For more information
about IntraWeb visit the
IntraWeb Website
For more information
about the Indy Project
visit the Indy Project Page
Advertising
19 Visitors Online
Introduction to sockets
Author: Chad Z. Hower
Homepage: http://www.atozedsoftware.com
Introduction
This article is an introduction to socket (TCP/IP sockets) concepts. It's not meant
to be a complete coverage of all socket topics; it's meant as a primer to educate
the reader at a level at which socket programming can be easily communicated. I've
also chosen not to cover higher-level protocols, such as FTP, World Wide Web, etc,
as I assume you're familiar with these (after all, you are on the Internet using the
World Wide Web as you read this).
There are several concepts that must be introduced first. As much as possible, the
following concepts will be likened to a real world concept you are likely familiar
with: a phone system.
Winsock ("Windows Sockets")
Winsock is a defined and documented standard API for programming network protocols.
Most commonly it is used to program TCP/IP, but can also be used to program Novell
(IPX/SPX) and other network protocols. Winsock is accessible as a DLL that is part
of Win32.
TCP/IP
TCP/IP stands for Transmission Control Protocol and Internet Protocol. TCP/IP can
mean many things, but in most cases, it refers to the network protocol itself.
Client
A client is a process that initiates a connection. Typically, clients talk to one
http://www.swissdelphicenter.ch/en/showarticle.php?id=3 (1 of 10)18/02/2011 2:54:14