[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Looking for a good chat sample with source code

Posted on 2003-10-22
5
Medium Priority
?
1,530 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

649 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