C++ World

C++ Resources, Tips,
Documentation, Examples,
HOWTO's, FAQ's, Tools
Libraries, Frameworks, IDE's

 
© 2005,2009 C++ World - All rights reserved - webdesign.arttina
C++, Sockets, SysProg, Libraries, Examples, Tools, Compilers, IDE, STL, XML
Google
FAQ Sockets Socket Library Software Engineering Sysprog Examples Books
 
Home
C++
The C Language
STL
BOOST
GNU
GNU C Compiler
GNU Debugger
GNU Profiler
HP C++ Compiler
DDD
Eclipse
Curses
XML
X11
KDevelop
MS Visual Studio
Tutorials

Network Programming with Sockets

Sockets appeared in Berkeley Unix (BSD = Berkeley Software Distribution) for the first time. For that reason, they are also called Berkeley Sockets. Since Berkely Sockets were implemented in Unix Systems originally, they have a long history connected with Unix history. In the meantime, the BSD Sockets idea proofed to be good enough for other operating systems as well and so they are also available on other popular systems like Windows.

The term Socket has two meanings.

For the application programmer, the socket is "visible" as a File Descriptor. The Programmer can treat a socket similar to a file and apply read(), write(), ioctl(), ... on it. This is the strength of the concept, but on the other hand a TCP connection is not a file and this difference maks socket Programming a bit tricky. It is not too hard to get something to work in reasonable time (please see also the Examples section), but to achieve ~ 100% reliability one needs a little bit of experience.

Socket Library

Network Programming is calling for a framework that addresses all the lower level issues so the application programmer can focus on the higher level problems. C++ World have developed their own C++ socket library, you can learn more about it here.

Recommendations: Sockets/Network Programming

There are not as many books on C++ system programming as there are on system programming with C. I present a few very good books here. I tried to get a complete coverage of all sysprog topics, without having too many books, which tell about one and the same thing.


Franz Brandel Contact Legal Statement Sitemap C++ World