Home > Software engineering >  O a socket based MFC multithreading group chat room, c
O a socket based MFC multithreading group chat room, c

Time:10-05

A socket based MFC multithreading chat rooms, c + +, requires that the server can at the same time for multiple client connections, multiple clients can undertake group chat, hurry, code simple basis as far as possible, don't need too complicated, function don't too strong, can achieve function can
Detailed code comments should attach a little explanation, please everyone,

CodePudding user response:

Is a chat room procedures, see Sun Xin video tutorials, there seems to be a section about this, you change, should not be difficult,

CodePudding user response:

Sun Xin the chat room is how to find themselves and their speech, only a window, and himself said there is what mean? I'm asking for is a server window, and a few client window, you can talk to each other

CodePudding user response:

The http://www.codeproject.com/Articles/4801/How-to-build-a-chat-server-based-on-an-IOCP-framew source down his own ideas,

CodePudding user response:

Under the code a lot online, search

CodePudding user response:

Many on the net, the basic function

CodePudding user response:

I had a search, not I didn't look not to understand is the function implementation, actually Sun Xin that can modify, how that he had only one window, not the server and the client, he is a window, don't know is the server in sent to the client or the client sends to the server

CodePudding user response:

reference 1st floor VisualEleven response:
is a chat room procedures, see Sun Xin video tutorials, there seems to be a section about this, you change, should not be difficult,

CodePudding user response:

reference shb8845369 reply: 3/f
http://www.codeproject.com/Articles/4801/How-to-build-a-chat-server-based-on-an-IOCP-framew source under down his own ideas,
you this completely outside my level, I use or bing (), listen (), accept, the send (), recv () function

CodePudding user response:

refer to 7th floor wyx100 response:
Quote: refer to 1st floor VisualEleven response:

Is a chat room procedures, see Sun Xin video tutorials, there seems to be a section about this, you change, should not be difficult,
top
Sun Xin the chat room is how to find themselves and their talk, there is only one window, himself and said there is what mean? I'm asking for is a server window, and a few client window, each other can talk, I've seen in vc + + in-depth explanation chapter 15

CodePudding user response:

refer to 7th floor wyx100 response:
Quote: refer to 1st floor VisualEleven response:

Is a chat room procedures, see Sun Xin video tutorials, there seems to be a section about this, you change, should not be difficult,
top
see the afternoon, and I want to know, Sun Xin IP address in the chat room binding addrseveer_in INADDRY_ANY is what mean? He send the data to IP address 127.0.0.1, why in the dialog box is displayed, the sendto () and recvfrom () is not a server, then sendto () to send data after 127.0.0.1, which is to accept data function, will not be recvfrem (), server sends data themselves to accept back it's not science

CodePudding user response:

Recommendations made open source components to realize the master, the inside of the sample slightly altered can achieve chat function

General high-performance TCP/UDP Socket components HP - Socket

https://code.google.com/p/ldcsaa/

CodePudding user response:

Yes, indeed, use this component to achieve can master,

CodePudding user response:

Bumps, go back to try

CodePudding user response:

The elder brothers, now finished yet?

CodePudding user response:

Search "jabber?"

CodePudding user response:

Please send a, qq403452033 contact, thank you

CodePudding user response:

Vc + + 6.0 + MFC network chat tools (including source code)