Reactor and Proactor

High-Performance Network Patterns: Reactor and Proactor There are only two approaches for performing IO operations efficiently. Explanation Reactor is a non-blocking synchronous network pattern that detects ready-to-read/write events. Whenever an event is detected (such as a read-ready event), the application process must actively invoke the read method to complete the data read — that is, the application process must actively read data from the socket receive buffer into its own memory. This process is synchronous; the application process can only process the data after reading is complete. ...

2024-04-20 · 3 mins · 3rd

Analyzing Why UDP Broadcasts Are Not Received

Analyzing Why UDP Broadcasts Are Not Received Due to business requirements, UDP broadcast and message reception were needed. However, testing revealed that UDP broadcast messages could be received using the nc command but not from within the program. This post documents the analysis process. Root Cause Searching on Stack Overflow, I found a similar question: Python UDP Broadcast not sending, where Adam Rosenfield noted: connect is fine with UDP, though it’s not standard practice. All it does is set the default destination address for all future send calls, and it limits the allowed source addresses from all future recv calls on the socket. It doesn’t actually do any sort of network connection. ...

2024-01-23 · 1 min · 3rd