Ho! I have another question. So, I am testing out MooSock, and it seems to be pretty well put together. There is only one thing bugging me though...
I have a server written in Game Maker / Faucnet (which is just a socket plugin). The protocol for it is this:
<MESSAGE TYPE BYTE>
<DATABYTE>
or
<MESSAGE TYPE BYTE>
<STRING LENGTH>
<STRING>
My problem is that I can send strings just fine, but I cannot send a byte. However, it works if I just send this: which is a byte representing 14.
Is there a function to convert a number to a byte? How about a short, or an int?
Thanks! ;D