Solved

Looking for a good chat sample with source code

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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…

911 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

17 Experts available now in Live!

Get 1:1 Help Now