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!
duplicate of the above by space cowboy. his also provides a link.
Jason D
2009-11-30 13:43:13
@Jason - this one isn't the duplicate - it came first
warren
2009-11-30 13:49:15
It came first.. but now link no nothing :)
Lipis
2009-11-30 14:11:34
+10
A:
Checkout Boost.Asio. It's portable, and it's also got an example that implements a simple chat.
Space_C0wb0y
2009-11-30 13:41:41
Download at http://www.boost.org/users/download/. You will have to do some reading to get this working though.
Space_C0wb0y
2009-11-30 14:06:20
I get a linker error while trying to compile the example code in dev-c++: [Linker error] undefined reference to `_Unwind_Resume' Does anybody know how to fix it?
Levo
2009-11-30 15:45:19
from my experience, examples (of any boost libraries i've tried) don't always compile. try a different example file. or which example it is. or something.
just somebody
2009-11-30 16:14:25
It is the only chat client example. I tried linking many different libs, but nothing worked.
Levo
2009-11-30 16:28:20
+4
A:
There's some source code here for a C/S chat application that you could probably use to get started.
Mas.
MaSuGaNa
2009-11-30 13:46:28
@MaSuGaNa - I was wrong, it was a similar project of the same author which used a header I couldn't find.Is this only for windows, or I misunderstood?
Levo
2009-11-30 14:04:52
The code looks easy enough to modify for cross platform use. If you want something already written I'd go with Boost.
MaSuGaNa
2009-11-30 14:26:54