Threads are also crazy - - - asynchronous programming
Preface
This section mainly introduces the basic knowledge of Task, Async and Await in asynchronous programming.
What is asynchrony?
Instead of blocking the current thread to wait for processing to complete, asynchronous processing allows subsequent operations until other threads have completed processing and callbacks notify the thread.
As ...
Posted by mikelmao on Thu, 21 Mar 2019 23:57:53 -0700
Introduction to SuperSocket (V) - Common Protocol Implementation Template and Fixed Size Receive Filter Example
Protocol parsing in Socket is the most complex part in the design of Socket communication program. If your application layer protocol is not well designed or implemented, the common sticky package in Socket communication will make subcontracting unavoidable. SuperSocket has built-in CommandLine Protocol in command line format. If you use protoc ...
Posted by dud3r on Thu, 21 Mar 2019 18:54:52 -0700
Implementation of PING in Linux Programming
The Chinese name of PING (Packet InterNet Groper) is Internet Packet Explorer, which is a tool used to check whether the network connection of another host system on the network is normal. The ping command works by sending an ICMP message to another host system on the network. If a message is received by the designated system, it will send the ...
Posted by devork on Thu, 21 Mar 2019 17:24:52 -0700
Exploration of Android Development Art--IPC Mechanism in Android
Multiprocess in Android
Why use multi-process
Multiprocess can avoid the method limitation of 65535, and because Android system has memory size limitation for each individual App application, it can increase the available memory through a multi-process approach of App.
Open multi-process
Opening multiple processes in Android is simple, ...
Posted by seidel on Thu, 21 Mar 2019 14:30:54 -0700
Construction of Kakfa Distributed Cluster
Based on the latest version of kafka_2.11-0.10.1.0, this paper describes the construction process of distributed Kafka cluster environment. Server List:
172.31.10.1
172.31.10.2
172.31.10.3
1. Download the kafka installation package
Log on to Kafka http://kafka.apache.org/.
Click the "Download" button on the left
Select the corres ...
Posted by jkkenzie on Wed, 20 Mar 2019 23:15:34 -0700
[Zinx Chapter 2 - First Understanding of Zinx Framework] Liu Danbing-Chuanzhi Podcast-Golang Lightweight Concurrent Server Framework
[Zinx tutorial catalogue]
Zinx source code: https://github.com/aceld/zinxZinx Develops API DocumentsZinx Chapter 1 - IntroductionChapter 2 of Zinx - First Understanding of Zinx FrameworkZinx Chapter 3 - Basic Routing ModuleZinx Chapter 4 - Global ConfigurationZinx Chapter 5 - Message EncapsulationZinx Chapter 6 - Multi-Routing ...
Posted by kylebud on Mon, 18 Mar 2019 02:48:26 -0700
C - A Plug for UNIX (Network Flow)
C - A Plug for UNIXPOJ - 1087
Title:
Give you some plugs and sockets. Plug and socket have different models, only the same model can match. Now there are k converters, each converter has infinite, but not necessarily all converter models. The function of the converter is to convert one plug into another plug. Now please at ...
Posted by Anti-Moronic on Sun, 17 Mar 2019 04:03:26 -0700
Without vs, c language windows socket, compiled with gcc
Sockets are usually vs under windows, because the socket runtime may be in win-sdk
I couldn't find ws2.32.lib in system 32 anyway, so I need to download this one. If I can find it anywhere else, click here. WS2.32 Download the file I uploaded to the cloud disk, password: 10nc.
First, write two codes, client.cpp, server.cpp.
The code comes ...
Posted by stef686 on Wed, 13 Feb 2019 18:18:19 -0800
linux open file number too many open files solution
linux open file number too many open files solution
too many open files
The reason for this prompt is that the number of file/socket connections opened by the program exceeds the system settings.
View the maximum number of open files per user
ulimit -a
fdipzone@ubuntu:~$ ulimit -a
core file size (bloc ...
Posted by neorunner on Sun, 10 Feb 2019 21:03:18 -0800
context.js/koa-convert/is-generator-function for koa source code reading
Old fellow hey
Today, let's talk about koa's context.js and some libraries written by tj itself.
context.js
'use strict';
const createError = require('http-errors');
const httpAssert = require('http-assert');
const delegate = require('delegates');
const statuses = require('statuses');
const proto = module.exports = {
//As mentioned in th ...
Posted by phithe on Sat, 09 Feb 2019 07:42:18 -0800