Socket server for Python 3 network programming
This section is mainly about the socket server of Python 3 network programming. In the last section, we talked about socket. Because socket can not support multi-user and multi-concurrency, there is socket server.
The main function of socket server is to implement concurrent processing.
There are two kinds of socket servers:
server class: Prov ...
Posted by almightyegg on Sat, 08 Jun 2019 14:28:37 -0700
[Source analysis] tinyhttpd-C language implements the simplest HTTP server
tinyhttpd is an ultra-lightweight Http Server with less than 500 lines. It's good for learning and can help us really understand the nature of server programs.
After looking at all the source code, I really feel that there are great gains, whether it is unix programming, or GET/POST Web processing process, are clear a lot. Don't talk nonsense, ...
Posted by jcavard on Fri, 31 May 2019 14:48:08 -0700
Linux Driver Development
1. Software system is divided into application program, library, operating system (kernel) and driver. The developer concentrates on one layer and knows the interface of the neighboring layer. For example, the application calls the library function open, and the library executes swi instructions according to the parameters passed in by open, c ...
Posted by cwscribner on Thu, 30 May 2019 12:04:18 -0700
Gearman Architecture of Task Distribution Scheme in High CPU Business Scenario
Gearman was used by LiveJournal to make picture resize. You also know that picture resize is a high CPU operation. If you let the web site do this high CPU function, it may bring you down.
In web applications, let's look at how gearman solves this problem. Its architecture is similar to the following:
From the picture above, you should see ...
Posted by britey on Wed, 29 May 2019 10:56:22 -0700
LTP Chapter 1 Introduction and Internal Mechanism of LTP
1 LTP Introduction and Internal Mechanisms
1.1 Introduction to LTP
LTP(Linux Test Project) is an open source community cooperation project based on GPL protocol. Initiated by SGI in 2000, IBM, OSDL and Bull jointly participated. After 2001, they were jointly developed and maintained by SUSE, Fujitsu, Red Hat and Oracle.
The reliability, s ...
Posted by coldkill on Wed, 22 May 2019 19:02:39 -0700
cgic uploads files to server
Reprint: Click to enter the github project address
After searching for the code of uploading files to the server for a long time on the internet, I basically found the same code. Here's the code
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/s ...
Posted by webspinner on Wed, 24 Apr 2019 20:18:34 -0700
Transplantation of uboot-2019-01 with tiny4412
Development environment: win7 64 bit + Ubuntu 16.04 64 bit
Development Board: tiny4412ADK + S700 + 4GB eMMC + 1G DDR3
Tool Chain: The arm-linux-gnueabihf - (gcc version 6.3.0) // lower version of the tool provided by the Friendly Arm does not compile the latest uboot
U-boot version to be transplanted: u-boot-2019-01
git War ...
Posted by stubarny on Tue, 23 Apr 2019 14:48:34 -0700
arm linux printer driver compilation method, embedded Linux driver printer HP series
arm linux printer driver compilation method and process record (2017.03.15):
Change Add Overview:
Add foo2zjs tool (for sending data to printer for printing);
Add gohstscript tool (for converting document format to pbm format recognized by printer);
Encript is added to convert txt, c, cpp and other documents into PostScript format recognize ...
Posted by varun8211 on Mon, 22 Apr 2019 02:15:35 -0700
BP Neural Network (Complete Theory and Empirical Formula)
http://blog.csdn.net/runatworld/article/details/50774215
BP Neural Network
2016-03-01 17:27 271 people read comment(0) Collection Report
Classification:
Data Mining Algorithm s (3)
Today, we talk about BP neural network. Neural network is based on BP neural network. machine learning It is widely u ...
Posted by blacklotus on Sun, 24 Mar 2019 12:57:31 -0700
linux sh : Makefile_userland_pf_ring_template
Preface
Put the project in hand into pf_ring, organize a Makefile template, and make a template for the later test project of pf_ring.
Think of the Makefile content previously posted on the blog, copy and paste it to the local Makefile, and then r\n appears at the end, causing Makefile to not run.
There are two sim ...
Posted by scast on Tue, 05 Feb 2019 19:39:16 -0800