Linux C++ Socket Example with Client Server and Mulit-T
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 12662
Total Votes: 89 votes
Category: C and C++/Basic Concepts
Submitted on: 2010-06-24 03:33:05
Submitted By: iresha
Description:The aim of this Linux C++ example is to create simple client/server socket communication and multi-threading program on Linux. This shows the basics such as binding, listening and accepting sockets for Servers and connecting sockets for clients. Once the server accepts a socket, a thread is spawned to handle it. The threads are C++ POSIX threads. This is the simplest Linux C++ multi-threaded socket example you can find. Please leave any comments or questions at the end of this tutorial and I will endeavour to answer them. More detail...