Solved

Looking for a good chat sample with source code

Posted on 2003-10-22
5
1,496 Views
Last Modified: 2013-11-20
After learning a basics of Windows sockets I want to see how to do a real things. I am looking for a good sample of chat program working in LAN (client + server). After scanning of MSDN samples, CodeProject and CodeGuru I didn't found the program I want. My requirements are:
1) Multithreading, asynchronous I/O
2) Using raw sockets API or CAsyncSocket MFC class (no CSocket)
3) No blocking calls in main thread, UI is always responsive - as it is done in the real program, and not in the beginner samples.

I hope somebody can give a link to such sample. Thanks.
0
Comment
Question by:AlexFM
5 Comments
 
LVL 3

Expert Comment

by:komar
ID: 9600332
Check the CHATTER/CHATSRVR sample available in MSDN. I personally started learning with this sample.

check http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/_sample_mfc_chatsrvr.asp for more information about the sample.

- Khalid Omar
0
 
LVL 1

Expert Comment

by:rushinmonkey
ID: 9601244
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 0 total points
ID: 9621862
Thanks, but both these samples use CSocket class.
I found the sample which is good for me:

http://www.codeproject.com/internet/winsockiocp.asp
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question