Simple C++ Instant messenger

15.7k Views Asked by At

I want to make a very simple c++ instant messenger for lan networks and internet (direct IP connect). I know little about sockets. I searched the internet, but nothing really helped. I would someone to suggest a howto/tutorial/guide. I just want to send and receive messages (in a console window, I'll create the gui later). I want it to be for both Linux and Windows. Thanks in advance!

4

There are 4 best solutions below

6
On BEST ANSWER

Checkout Boost.Asio. It's portable, and it's also got an example that implements a simple chat.

3
On

check out Boost.ASIO

0
On

Use boost, cross platform, under the link, straight forward example for client-server chat.

3
On

There's some source code here for a C/S chat application that you could probably use to get started.

Mas.

Example Code