I am trying to implement a small server-side solution for remotely connecting to my home network. Basically like using a custom-proxy, since my ISP does not allow incoming connections (Dish/Hughes Net).
I've setup a c#/wpf/desktop application to connect to my server/website via TCP. Once the connection is established, some HTTP headers are pushed through:
"GET http://.../api.ashx?connect HTTP/1.1"
"Host: ...:80"
"Connection: keep-alive"
"Content-Encoding: UTF-8"
"Transfer-Encoding: chunked"
""
{data}
0\r\n
This solution is only working once the request has completed. The problem is that the incoming data is being buffered before it is processed by the GenericHandler, and being sent "all-at-once". I need to find a way for data being sent to ASP.net to remain streamed/chunked, so it can be processed asynchronously.