Wednesday, November 25, 2020

Which format do you use when sending a string over socket.

Hello guys, I've been wondering what format do you guys use when sending a string over socket between clients and server.

I'm currently using this format

"MessageType<,>data1<,>data2<eom>" where I seperate each variable with <,> and end the string with <eom> (end of message)

for example: registerSuccessful<,>25112020<eom>

I would appreciate to learn if there are better practices.



No comments:

Post a Comment