S
Scott
I'm writing a C# server application that is reading from a socket sent
from a C++ client program. The C++ client program is sending the
following data:
struct
{
int stringLen;
actual ASCII string;
};
stringLen is intialized with the following C++ code:
htonl(std::string::size());
My question is, how do I read in the string length in C#? I can't
seem to locate similiar functionality in C# for the C++ call
ntohl(long);
Thanks for any help!
from a C++ client program. The C++ client program is sending the
following data:
struct
{
int stringLen;
actual ASCII string;
};
stringLen is intialized with the following C++ code:
htonl(std::string::size());
My question is, how do I read in the string length in C#? I can't
seem to locate similiar functionality in C# for the C++ call
ntohl(long);
Thanks for any help!