An elegant design heavily based on protocols. The question is: is it really fast?
Some tricks to control how many bytes are read from TCP/IP or how to read only 1000 bytes:
This post discusses relations between low level TCP/IP buffering and HttpCompletionOption.ResponseHeadersRead, request.AllowReadStreamBuffering/AllowWriteStreamBuffering, using TcpClient directly and range (httpclient.DefaultRequestHeaders.Range = new RangeHeaderValue(0, size);)
The father Microsoft Research – Detours (Detours Professional is available but at a 12 739€ a prohibitive cost),
An article detailing used notions API Hooking with MS Detours
EasyHook starts where Microsoft Detours ends with an discussion of hooking ExtTextOut and DrawText,
API hooking revealed : in depth injection and interception technics analysis.
This free open source tool for Mac OSX allow you to manipulate almost every Window with simple keyboard shortcuts: eczarny/spectacle · GitHub.