Socket network programming advanced and actual combat

Source: Internet
Author: User

1th Curriculum Guidance (Java language Teaching)
Description: The course case section is implemented in the Java language This section begins with a guided tour of the course, including why you should take this course, the objectives and benefits of the course, the course content arrangement, the appropriate crowd and learning recommendations, and then the code specification and development considerations. The goal is to hope that the students will be greatly facilitated by this course. ...

2nd. Quick start of socket network programming
This chapter first describes what is the socket network programming, so that you have a general idea of the socket and direction. Then through a few small case leads to the course, relaxed and enjoyable to let you experience the pleasure of socket programming. This chapter mainly gains: 1. Understand what network programming is, 2. Understand the relationship between the socket and TCP, UDP 3. Understand the definition of messages, protocols, MAC, IP, and ports in the network transmission. ...

3rd. Socket UDP Quick Start
UDP is an important part of the socket, and in this section you get to know what UDP is and what you can do with UDP. This chapter mainly gains: 1. Understand what UDP is, 2. The main role of UDP, 3. The simple use of UDP and API learning, 4. Understanding the network of unicast, broadcast, multicast and other concepts and technology implementation ...

4th Chapter Socket TCP Quick Start
TCP can be said to be the most important component of the socket, but also the basis of network transmission, with the TCP cornerstone of today's stable network transmission. This section lets you understand the importance of TCP and learns to use TCP for simple data transfer. This chapter mainly gains: 1. Understand what TCP is, understand the importance of TCP, 2. Learn the essence of TCP and API usage, 3. The connection reliability principle of TCP, 4. The transmission reliability principle of TCP, 5. Learn to use TC ...

The 5th chapter of UDP-assisted TCP for Point-to-point transmission cases
Before we learned UDP, TCP, this section will use the discovery of UDP TCP connection to establish a point-to-point data transmission, while allowing you to understand and realize the data sent and received in parallel. This chapter mainly gains: 1. How UDP is used in conjunction with TCP, 2. The main responsibilities of UDP and TCP are divided, 3. Transfer data how to do and transfer, 4. Learn to use multithreading to solve blocking and parallel cases. ...

6th Chapter Simple Chat room case
A one-to-many chat room model is a classic case, such a structure can also be called CS model, in such a model has service? End acts as all data transmission and forwarding operations, but also to the server to bring great pressure. In this section you will learn to build a chat room while understanding the stress optimization strategy of the service. This chapter mainly gains: 1. Chat Room Foundation design, 2. Chat room service? Design scheme, 3. Chat Room Service number ...

7th Server Transmission Optimization-nio
Sockets are efficient in our cognition, and in the last section we learned that a bad design is going to ruin the service. Consume more resources, slow it should not be what we need, we want a high-performance and extremely simple transmission model. Then in this chapter will take you into the new field of "NIO" a mysterious and fascinating technical solution. Use NIO for simple server optimizations to solve the problem of too many threads booting. This chapter mainly gains: 1. Ming...

8th Chapter Data Transmission Stability optimization
In the actual test we will find: 1. When the data is sent fast enough, the service will not cause the message to be handled in a timely manner, the phenomenon of sticky packets, 2. When the business layer buffer size is insufficient, it will cause the single message to be lost completely. In this chapter we draw on the message body protocol of HTTP and simplify it to the socket transmission so that the message on the client and service is not sticky, not congruent. This chapter mainly gains: 1. Understand what is sticky bag, eliminate ...

The 9th chapter of local Area Network file Fast Transmission technology actual combat
How to realize the core function of the fast transmission and QQ fast transmission of eggplant? This chapter lets you know that you can achieve it, even better and faster! This chapter mainly gains: 1. The difference between the file message and the ordinary message, and the precautions, 2. How to use the socket to send a piece, 3. How to use the stream to implement a combination of file and normal message encapsulation, 4. If you use the paradigm to implement the packet, frame rules encapsulation, 5. The principle and realization of file slicing technology ...

10th Chapter Chat Room upgrade version of the actual combat
A complete chat room should have excellent message delivery efficiency and the protection of message transmission. The practical development difficulty lies in how to rationally allocate the message dispatch resources, and how to know the current state of the client so as to carry on the client's re-connection mechanism. This chapter mainly gains: 1. scheduling optimization using thread + queue scheme, 2. The heartbeat remains why it needs to be done and how to do it, 3. How to send heartbeat packs and consume heartbeat packs, 4. Efficient data consumption and line ...

11th. Real-time voice data communication combat
In recent years, the video voice broadcast is very strong, its core technology is the real-time transmission of data stream, in this chapter focus on the implementation of voice chat technology, of course, you can also expand to video chat and so on. In this chapter, the Data agent bridging scheme is the focus, the message sending and transmitting the shortest delivery scheme is also difficult. This chapter mainly gains: 1. Understand the principle of instant voice chat transmission, 2. "Peer-to" technology implementation, 3. What is data bridging, 4. Such as...

12th chapter The whole code structure combing and sublimation
Although we have implemented common cases, the code should pursue reuse and practicality. This chapter introduces new knowledge Points: Data prioritization and encapsulation, memory reuse models, and so on, which is a great opportunity to improve your technology. This chapter mainly gains: 1. Look at yourself and understand existing code flaws, 2. How to achieve the scheduling of sub-priority scheduling, 3. Learn about memory consumption issues in high concurrency, 4. Learn the design of memory reuse, 5. Implement memory ...

The 13th chapter of the course summary
This chapter focuses on summarizing all the knowledge points of the socket course and looking at the following developments. Lifelong learning, students, wish you learn something, learn something! Any questions in the study can be published to the question-and-answer area, I will be asked to answer, or add Group courses QQ Exchange Group, and like-minded small partners to discuss and exchange, and finally, especially thank you for my support. ...

: Baidu Network Disk download

Socket network programming advanced and actual combat

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.