Skip to content
Advertisement

Tag: protocols

Efficient way to extract protocol data units from tcp byte stream

I’ve had two java projects (simple multiplayer games) that relied on a byte-based connection-oriented protocol for communication. In both cases I was unhappy with the implementation of the communication, since I couldn’t come up with an intelligent, non-verbose and object-orientied way of writing and especially parsing the bytes. For writing I had something like That was acceptable to some extent,

Advertisement