Qt Document Reading Notes - Error-related Signals in QSslSocket
Catalog
Basic concepts
Code and examples
Basic concepts
Look at the signal before putting in the code:
[signal] void QAbstractSocket::stateChanged(QAbstractSocket::SocketState socketState)
This information is triggered when the so ...
Posted by mtgriffiths on Thu, 29 Aug 2019 20:03:21 -0700
ss of Linux Command
What is it?
ss is the abbreviation of Socket Statistics. As the name implies, the ss command can be used to obtain socket statistics, which can display content similar to netstat. But the advantage of ss is that it can display more detailed info ...
Posted by knetcozd on Thu, 29 Aug 2019 06:11:17 -0700
Java Network Programming--AIO Asynchronous Network Programming
A in AIO is Asynchronous, AIO is asynchronous IO. It is asynchronous and non-blocking. The client's I/O requests are processed by the OS and then the server application is notified to start the thread. Generally, our business processing logic will become a callback function, waiting for the IO operation to be completed and triggered automatic ...
Posted by XenoPhage on Wed, 28 Aug 2019 06:51:25 -0700
Don't you know WebSocket?
What is a WebSocket?
WebSocket is a protocol for full duplex communication over a single TCP connection.Here we find an interesting word:'Full duplex', so let's get a simple idea of how to communicate!
Single Work
In both sides of communication, one party is fixed as the sender and the other as the receiver.Information can only be transmitted i ...
Posted by shack on Tue, 27 Aug 2019 19:08:55 -0700
Python Development Necessary 30 Programming Skills
Direct exchange of two digits
Python provides an intuitive way to assign and exchange (variable values) in a line of code. As follows:
x, y = 10, 20
print(x, y)
x, y = y, x
print(x, y)
#1 (10, 20)
#2 (20, 10)
In the above code, a new tuple is fo ...
Posted by lmninfo on Tue, 27 Aug 2019 02:38:03 -0700
Java Network Programming--NIO Non-blocking Network Programming
Starting with Java 1.4, in order to replace Java IO and network-related APIs and improve the running speed of programs, Java has provided a new non-blocking API for IO operations, namely Java NIO. There are three core components in NIO: Buffer, Channel and Selector. NIO operates on Channel (channel) and Buffer (buffer). Data is always read fr ...
Posted by portia on Mon, 26 Aug 2019 07:46:00 -0700
Concurrent optimization of nginx single machine for 1w
Concurrent optimization of nginx single machine for 1wCatalogab toolIntegral Optimizing ThoughtSpecific optimization ideasWrite scripts to optimize concurrent configurationPerformance statistics toolstipssummary
ab toolab -c 10000 -n 200000 http://localhost/index.html
[root@study02 ~]# ab -c 10000 -n 100000 http://192.168.0.217/index.htmlThis i ...
Posted by rachae1 on Sat, 24 Aug 2019 02:40:41 -0700
Sharing Examples of Linux C++ Network Programming: Structures, Byte Alignment, Size End Byte Order
1. Project Background
I need to receive the location information of the GPS device through UDP. The data package structure defined by the manufacturer is roughly as follows:
Packet header:
describe
Number of bytes
Command flag
2
version num ...
Posted by php_joe on Thu, 22 Aug 2019 23:09:00 -0700
Integrating Memcached and Redis access using flea-frame-cache
Integrate Memcached and Redis access
Reference resources
Integrating Memcached and Redis access source code used by flea-frame-cache
rely on
No more, see my blog entry below:
Memcached access used by flea-frame-cache
Redis access used by flea-f ...
Posted by gooman on Thu, 22 Aug 2019 18:50:58 -0700
Learning Summary of RPC
These two days watching RPC is really a bit of a mystery, some things to see forgotten, forgotten to see! Plus there are some messy things, I feel that these two days need to sort out ideas, and then according to the principle, to achieve a RPC frame ...
Posted by gavinandresen on Mon, 19 Aug 2019 20:38:44 -0700