As a Xiaobai, it's really difficult to read documents, and there is little knowledge about flash socketio on the Internet, so I wrote this blog for some brothers who can't do anything like me to understand the basic use of flash socketio, which can also be regarded as recording the production process of my chat room, even my small ...
Posted by damic on Sun, 06 Mar 2022 21:00:24 +0100
1. Basic knowledgeDeclaration of structure
2. Structure self reference
3. Initialization of structure
4. Structure memory alignment
5. Modify the default alignment number
1. Basic knowledge
The values of some variables with different structures can be members of different types.
Declaration of structure
struct tag//tag can ...
Posted by YOUAREtehSCENE on Sun, 06 Mar 2022 17:17:27 +0100
Create an executable program using CMakeCreate a dynamic / static library and use it as a libraryThe third-party library is introduced in the form of source code and used in the form of multi-layer directoryThe third lib library is shared across platforms to change the hierarchical structure of the codeOther small details (problems e ...
Posted by nediaz on Sun, 06 Mar 2022 17:08:20 +0100
1. Classification of IO streams
Classification by flow direction: Input stream (read data) Output stream (write data) Classification by data type: Byte stream Byte input stream read data InputStream Byte output stream write out data OutputStream Character stream Character input stream read data Reader Character output stream writ ...
Posted by guru2k9 on Sun, 06 Mar 2022 14:57:08 +0100
re.match attempts to match from the starting position of a string. If it cannot match from the starting position, it returns None.
Syntax: re match(pattern, string, flags=0)
pattern -- regular expression
String -- matching string
flags -- flag bit, which is used to control the matching method of ...
Posted by ravnen on Sun, 06 Mar 2022 14:28:40 +0100
I. Basic Introduction
1.1 Netty knowledge
Official website: https://netty.io/
Netty is a NIO client server framework, which can quickly and easily develop network applications, such as protocol server and client. It greatly simplifies and simplifies network programming such as TCP and UDP socket server.Netty is an asynchro ...
Posted by stig1 on Sun, 06 Mar 2022 14:18:44 +0100
Golang standard library context Context
In the Go http package Server, each request has a corresponding goroutine to process. Request handlers usually start additional goroutines to access back-end services, such as databases and RPC services. The goroutine used to process a request usually needs to access some data specific to the request, su ...
Posted by phpian on Sun, 06 Mar 2022 11:58:24 +0100
Detailed explanation of Redis configuration fileCompanyWhen redis is started, it will read the configuration file redis conf1k => 1000 bytes
1kb => 1024 bytes
1m => 1000000 bytes
1mb => 1024*1024 bytes
1g => 1000000000 bytes
1gb => 1024*1024*1024 bytesUnits in redis are not case sensitive. For example, 1GB, 1GB and 1GB all mea ...
Posted by erikwebb on Sun, 06 Mar 2022 11:52:32 +0100
Data structure - red black tree
Red black tree is the underlying data structure of map, set, mutilmap and mutilset containers. It is also a very important data structure. It further optimizes AVL in efficiency, because AVL structure cannot avoid a large number of rotation operations during insertion or deletion, resulting in loss of e ...
Posted by guitarist809 on Sun, 06 Mar 2022 11:35:12 +0100