I'm using sockets in a C++ forms application and it is talking to a native C++ DLL that uses winsock send() recv(). I am needing to convert a array<byte>^ to a String^ as the Socket->Receive() and Socket->Send() methods use a byte array as the buffer for sending and receiving.
I need an explicit process to convert the byte array buffer to a string for the receive, and then do the opposite for going back on the Send side.
I figured it out...by using a simple NetworkStream and encoding the byte arrays i can send to and receive from the native winsock using .net sockets...