I began testing a simple threads example. But, I had a little problems:
- The pre-compiler said: “thread could not be resolved”.
- The compiler said “… undefined reference to ‘pthread_create’ …”.
Here is the solution.
I began testing a simple threads example. But, I had a little problems:
Here is the solution.
This is a simple C++ socket example with a client and echo server. This tutorial is based on simple server and client chat (linux) written by Hassan M. Yousuf.
I do not pretend bring a long explanation about sockets, you can find a lot of information in Google. I share a basic example to understand how it works.