Timinator
HttpListener
I'm currently writing an extreme lightweight HTTP server in PowerShell script(which very obviously utilizes the .NET framework). I want to figure out how to check if a connection is still alive before dispatching the response with HttpListenerResponse.Close(), because if i try to write to a dead connection it obviously throws errors, and i'd like to handle this gracefully before the catch block needs to trigger
7 replies
❔ PInvoke, Reflection or winapi for loading a DLL?
I need some advise for how to implement a dynamically loadable dll that ive written in c++ and exported with extern C function wrappers. Unfortunally im not that proefficient in C#. i cant seem to find a dynamic way to make calls via those function pointers.
186 replies