HTTP SSE (Server-Sent Events)

SSE (Server-Sent Events) is a server push technology based on the HTTP protocol, which is used to realize the function of the server sending events to the client in real time. In SSE, the server can send different types of messages to the client. The following are the message types that may appear in SSE: […]

Web APIs – event listening and mouse events

1. Event monitoring What is an event? Events are actions or things that happen within the system while programming For example, a user clicks a button on a web page What is event listening? It is to let the program detect whether an event occurs. Once an event is triggered, it immediately calls a function […]

Qt Signals & Slots VS QEvents – Qt cross-thread asynchronous operation performance test and selection suggestions

Related code reference: https://gitcode.net/coloreaglestdio/qtcpp_demo/-/tree/master/qt_event_signal 1. Origin of the problem When implementing low-latency transformation of taskBus, avoiding the abuse of signals and slots played a better role. In the previous article, the author described how to improve the throughput of the software radio (SDR) platform by avoiding broadcast signals and frequent new and delete. Recently, considering […]

[Official account development] Obtaining Access Token · Requesting the official account server to create a custom menu · Handling custom menu button events

[Public account development] (3) Article directory [Public account development] (3) 1. Get access token 1.1 Determine parameters 1.2 Complete URL (add query string) 1.3 Testing 2. Encapsulate AccessToken for storage and later use 2.1 TokenUtils makes some adjustments 2.2 AccessToken in singleton mode 2.3 TokenUtils method of obtaining globally unique token string 3. Custom menu […]

The use of ManualResetEvent and ManualResetEventSlim in C#

Starting with .NET Framework version 2.0, ManualResetEvent derives from the EventWaitHandle class. The ManualResetEvent is functionally equivalent to the EventWaitHandle created using EventResetMode.ManualReset. ManualResetEventSlim is used to achieve better performance of ManualResetEvent. The following introduces a summary of the use of ManualResetEvent and ManualResetEventSlim in .NET (C#). 1. ManualResetEvent and ManualResetEventSlim ManualResetEvent represents a thread […]