---

Linux Gazette: Introduction to Socket Programming

“Most operating systems provide precompiled programs that
communicate across a network. Common examples into the TCP/IP world
are web clients(browsers) and web servers, and the FTP and TELNET
clients and servers. Sometimes when we are using this utilities of
the internet we don’t think about all the process involved. To
better understand this aspects we, in our research group(GTI, Grupo
de Tecnologia em Informática) at Goias Catholic University
(Universidade Católica de Goiás), decide to build,
write our own network programs, mini-chat, using the basic
structure about sockets, an application program interface or API,
that mechanism that make all this communication possible over the
Net.”

We examine the functions for communication through sockets.
A socket is an endpoint used by a process for bi-directional
communication with a socket associated with another process.

Sockets, introduced in Berkeley Unix, are a basic mechanism for IPC
on a computer system, or on different computer systems connected by
local or wide area networks(resource 2). To understand some structs
into this subject is necessary a deeper knowledge about the
operating system and his networking protocols. This subject can be
used as either beginners programmers or as a reference for
experienced programmers.”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis