[Updated to 2.0] mgen object 672: TCP painting chat room

Source: Internet
Author: User

Update list:

Update 1

 

Directory

    • 1. Engineering Information
    • 2. Usage
    • 3. Download the program and source code

 

Returned directory
1. Engineering Information

Minimum running environment . Net 3.0 (can be run directly in Windows Vista/7/8)
Supported languages Chinese and English
Open Source Yes

 

This is a simple TCP-based chat and painting project. The painting function refers to a user's painting in the chat room. Other users will see the painting pattern simultaneously.

 

Returned directory
2. Usage

The project contains two sub-accountsProgramAre server programs and client programs respectively.

Server program running interface:

 

It's easy. Click "enable server" to run the server:

After the server is enabled, remember the port number of the server. The IP address always displays 0.0.0.0, representing the local machine (here, of course, there is something to be improved ).

 

After the server is enabled, you can use the client to log on to the server. The client running interface is as follows:

Enter the user name and the server port number. The server address 127.0.0.1 indicates the Local Machine (I have not tested the Internet environment), and then select "OK" to enter the chat room.

 

At this time, you can run multiple clients to add multiple users to the chat room. The Chat Room interface is as follows:

There is a user list on the left, chat and message content on the right, and chat through the send button:

This is the content of the chat, and the middle is the place of painting. You can adjust the color, careless, or clear the image.

 

Let me draw on the left !" The button is the interface for executing broadcast painting (because it is self-painted by default. Will not pass your data to others), select "let me draw", the painting window of other people in the chat room will show the results of your painting at the same time, such:

 

Each user's chat window will also display who is currently drawing. If you want to interrupt him, you can also follow your own "let me draw !" Button, so that you will start to draw this painting (A Bit Of A racing force that feels like), such, the current plotting changes from the user "mgen" to "3334" (it seems that this 3334 painting is not bad ):

 

 

Returned directory
3. Programs andSource codeDownload

Current version of the program and SourceCodeDownload
Download Page
Note: This is an archive of Microsoft SkyDrive. You can directly download the file in your browser. Some download tools may not be available for download.
Sample program running environment:. NET Framework 3.0
Source code environment: Microsoft Visual Studio express 2012 for Windows Desktop
Note: The Source Code does not include the referenced external class library file: mgen SPA project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.