Linux C++ Socket Example with Client Server and Mulit-T

Tutorials Shared by the Internet Community

Advertisements


Synopsis

The aim of this Linux C++ example is to create simple client/server socket communication and multi-threading program on Linux.

Statistics

  • Total Hits - 28366

  • Total Votes - 151 votes

  • Vote Up - 71 votes

  • Vote Down - 80 votes

  • Domain - www.tidytutorials.com

  • Category - C and C++/Basic Concepts

  • Submitted By - iresha

  • Submitted on - 2010-06-24 03:33:05

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. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements