Chapter 11 of csapp: network io md

1. Network architecture You need to understand the basic client server programming model and how to write client server programs that use services provided by the Internet. Finally, combine all the concepts to develop a small but full-featured web server. Nowadays, network applications can be seen everywhere. Interestingly, all network applica ...

Posted by rotto on Fri, 25 Feb 2022 13:39:23 +0100

Use of Java UDP broadcast and multicast -- Series 1

1.UDP broadcast. The client opens a port to listen to data. The server specifies the port to send data, and the client can receive the data. The broadcast address bound by the server is 255.255.255.255 Client listening: public class BroadcastClient { private int MessageIndex = 0; private int port = 6787;//Data listening binding port ...

Posted by yuws on Fri, 25 Feb 2022 03:39:18 +0100

Apache configuration and Application

catalogue 1, Build virtual Web host 2, Types of virtual hosts supported by httpd service (three types) 1. Domain name based virtual host ① Provide domain name resolution for virtual host ② Add virtual host configuration ③ Prepare web document for virtual host ④ Set access control ⑤ Load a stand-alone configuration file 2. IP address ...

Posted by smonsivaes on Thu, 24 Feb 2022 15:44:20 +0100

Assembly language (Wang Shuang) - Experiment

Chapter 7 more flexible method of locating memory address 2. Program and complete the procedure in question 7.9 assume cs:codesg,ss:stacksg,ds:datasg stacksg segment dw 0,0,0,0,0,0,0,0 stacksg ends datasg segment db '1. display ' db '2. brows ' db '3. replace ' db '4. modify ' datasg ends codesg segment s ...

Posted by verlen on Thu, 24 Feb 2022 15:18:43 +0100

Server version of the confession wall

1, Connect the html page to the server First, in the previous blog, I wrote the html version of the confession wall Now, you need to connect the html version of the confession wall to the back-end server The code is as follows: import com.fasterxml.jackson.databind.ObjectMapper; import javax.servlet.annotation.WebServlet; import java ...

Posted by candy2126 on Thu, 24 Feb 2022 14:12:56 +0100

Linux common commands

Basic format of Linux commands The basic format of commands in Linux is: Command [- option] [parameter] For example: ls -la /etc Individual commands do not follow this formatWhen there are multiple options in a single, they can be written togetherShort and full options For example: - a and – all jurisdiction In Linux systems, per ...

Posted by evdawg80 on Thu, 24 Feb 2022 10:26:13 +0100

Summary of common functions of multi process and multi thread programming in linux

Multi process Create process When executing a program in multi process mode, you need to create a process before forking #include <unistd.h> //Create a process and return the number of the process in the program pid_t fork(void); //Return process number pid_t getpid(void); be careful: Child processes and parent processes shar ...

Posted by jpschwartz on Thu, 24 Feb 2022 09:08:40 +0100

EventLoop and EventLoopGroup of Netty source code analysis

The previous articles have analyzed the server startup and client connection of Netty in detail, so that you should have a more comprehensive and macro understanding of Netty. In the following article, I will analyze the source code of each main component of Netty. Personally, I think that the order from macro to detail, from surface to point, ...

Posted by bestpricehost on Thu, 24 Feb 2022 08:39:04 +0100

Session management and generation of verification code

session management Cookie introduction https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Cookies HTTP Cookie (also known as Web Cookie or browser cookie) is a small piece of data sent by the server to the user's browser and saved locally. It will be carried and sent to the server the next time the browser sends a request to the same ...

Posted by Danosaur on Wed, 23 Feb 2022 15:20:31 +0100

mysql master-slave replication project practice

introduction Recently, the little ape needs to be on the project according to the requirements of the leaders. The database needs to realize master-slave replication. The necessity and principle of master-slave replication of the database are not explained too much in this paper. Interested children's shoes can refer to some articles on the In ...

Posted by pugs1501 on Wed, 23 Feb 2022 15:01:22 +0100