Solved

Looking for a good chat sample with source code

Posted on 2003-10-22
5
1,469 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now