Best practice: Whenever state is kept on the server between calls, use context handles.
Context handles are often intimidating for new RPC programmers, and the overhead of learning context handles may not initially appear worth the effort. It is worth it because context handles have built-in solutions for many common pitfalls encountered in network programming that otherwise would have to be implemented from scratch. Understanding context handles pays dividends later.
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
