I have native dll project which I use from C# via CLI wrapper. In Initialize
method of dll i'm calling
WSAStartup(MAKEWORD(2, 2), &data);
This works fine. Now I"ve decided to move entire dll to boost::asio (because I will port it to Linux and I want to enable /Za compiler option).
The question is - where and how should I replace WSAStartup
call?
- move it to CLI wrapper or to the top-level C# project?
- replace it with some boost::asio call (which method to call?)