I’m making a simple client server chat application. I want to be able to send the person’s username and after that their message.
Is there some standardized way I’m unaware of that is better than something like:
2:9:11:John Korn:Hello World
I’m sending UTF-8 strings.
Thanks
You might want to give Protocol Buffers a read. Protocol Buffer strings are UTF-8 encoded by default.