Currently, I have a .NET program that initiates a connection to the server and launch another unmanaged executable. The native process must use the same socket (it is important that the connection does not close before the end of the child process!) And begins to exchange it with the server.
The above programs run like on Windows, but I would prefer a solution that does not include P / Invoke for the .NET part. As a side note, communication from parent to child process is not a problem, so I can easily exchange data between them.
In addition, as soon as I start using a socket from my own process, I no longer need to use it from a .NET process, and the .NET process ends before I do this using a socket from an unmanaged process, thus Solution. I need to know what to do with a Socket object in .NET, so removing it does not affect the OS socket and its usability.
Thanks in advance!
em70
source share