Hello MSDN or community.
I would like ask how to use Socket.IOControl Method.
Specifically, I want to try to send TCP socket keepalive packet every 30 sec to remote host.
I referred below MSDN documentation but I couldn't figure out how to from below page.
https://docs.microsoft.com/en-us/dotnet/api/system.net.sockets.socket.iocontrol?view=net-5.0&source=docs#System_Net_Sockets_Socket_IOControl_System_Int32_System_Byte_System_Byte_
I figured I have to refer below method from myClient.
myClient.IOControl(IOControlCode.KeepAliveValues, optionInValue(??) , null);
But I couldn't figure out how I should create optionInValue in byte[ ] from given MSDN documentation?
If you teach me how to refer MSDN document, it would be appreciated.
My project is C# and using .net framework version 4.0
Thank you in advance.
Joo