I am writing a small TCP/IP client using the Winsock control. The client is designed to connect to a particular server which expects a special sequence of bytes during an initial handshake. I need to send four bytes in "Unix byte order".(In particular, I need to send a four byte sequence containing the number of characters in the string that I am about to send (which is 8)).
The server documentation mentions a C/C++ macro called "htonl" that can be used in those languages. I'm looking to accomplish the same thing in Visual Basic.
I have a rudimentary understanding of the concepts, but I have no idea how to go about implementing them.
Thank you in advance.