Multi-threaded and SOCKET-based chat rooms (original source code) [ASP. NET without controls]

Source: Internet
Author: User

Main functions
Ideas:
All client operations are forwarded by the server to other clients. The client interacts with each other except when the file is directly transferred (sending and receiving are also sent to the server). Other operations are performed by the server.
Server:Enable/disable/online management/warning, ban, resume speech, and kicker-targeted user operations
Client:Connection server/public chat, private chat, chat for someone, send shake screen, Send File (4 M, large file transmission only need to modify the code, and add it in two days)Why post:
The front-end time happened to have a simple SOCKET communication program for demonstration. Later I remembered the chatting room I used java swing to do with my students in college, and I spent two days working with C. I have no idea about speed. Sorry ~~
I feel that I am dealing with browser servers every day when I develop B/S structures, but I am too lazy to worry about how they interact, this program can better understand what B/S interacts with at the underlying layer. This post is intended for beginners.One touch:
I have been working since February and have been working for more than five years. Every problem I encounter is solved by searching on the Internet (especially in the blog Park). You can say that, thanks to the guidance of our predecessors who are willing to share their own procedures. I learned too much from them, but I am too lazy to share my experience online. It's not unwilling, but the longer it takes, the deeper it gets, the smaller it feels like most of my colleagues working on software development.
Today, when chatting with old friends online, I suddenly felt that I had never shared anything as a beneficiary of online sharing. It was a ridiculous thing to be ashamed... make up your mind to embark on the road of sharing, simple code, and always have a suitable situation and problem ...... this article is about Chen Nuo, who insists on himself.Follow-up:
1. Implement all functions and refactor the code in the free time of the next month.
2. Documents and charts will be organized in the next month.
Overall:
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/1SK15J2-0.jpg "alt =" chatroom full graph "style =" border-width: initial; border-color: initial; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-style: initial; border-color: initial; "/>

Server:
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/1SK13018-1.jpg "alt =" "style =" border-width: initial; border-color: initial; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-style: initial; border-color: initial; "/>

Client:650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/1SK15U5-2.jpg "alt =" "style =" border-width: initial; border-color: initial; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-style: initial; border-color: initial; "/> download: multi-thread and socket room v05.rar from: Kaizhi network http://www.oumind.com/html/tech/chatroombaseonsocketthread_20114.htmland free of charge:The latest video tutorial (including self-implemented multi-threaded Socket chat rooms and WEB server software) is provided by the instructor ASP. NET of Chuanzhi podcast !!!)

Related Article

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.