Home > Software engineering >  Design a kind of chat software based on the MFC socket
Design a kind of chat software based on the MFC socket

Time:10-05

1. Chat rooms, design a kind of chat software, based on the MFC socket requirements:
1) using a CDialog class and write CAsyncSocket categories, realize the user login function (based on the TCP),
2) the client Settings have connect server capabilities, disconnected function,
3) the client Settings are set user login function, after the user login, the login, fill in the name of;
4) client Settings has a history of show their message function, each user can start a chat;
5) client setup message chat show other users;
6) client Settings when other user exit, according to withdraw from the message;
7) can be set on the server, set the IP and port services, have to start listening, disconnect monitoring function,


This how to write ah, the final big job, but I don't know how to do ah, the teacher taught only one-to-one chat server and the client, not to the private chat function

CodePudding user response:

Baidu search relevant keywords,

CodePudding user response:

http://download.csdn.net/download/u012382336/6664975

CodePudding user response:

The so-called private chat, is your notification server which user sending a message, tell him you is the top one bag SL: private chat character name or ID space coded messages sent, and have a server-side parsing, SL: access to the private chat ID characters, forward to the corresponding private chat character ID of the SOCKET to send a packet,
In this way, but you still need to do something with the client and make some accept private chat code,

Registered is simulated as the logic of game accounts, converting the thinking of the registered account user code can be written,
  • Related