I have very little server-side logic in my application. The server just relays incoming messages to each client. Each message contains a byte and some messages may contain an additional array of bytes.
I am currently parsing the data out of each incoming message into a new outgoing message (with the code I hacked together below). Is there a built-in and/or more efficient way to do this?
I have very little server-side logic in my application. The server just relays incoming messages to each client. Each message contains a byte and some messages may contain an additional array of bytes.
I am currently parsing the data out of each incoming message into a new outgoing message (with the code I hacked together below). Is there a built-in and/or more efficient way to do this?
Thanks for any help!