[ENet-discuss] Packet Data query

Ian Wiles ian.alexander.wiles at googlemail.com
Thu Dec 18 09:59:04 PST 2014


Hi,

I've started using enet recently, using the pre-built libs for VC++. I'm
trying to pack an object that is designed for transport over the wire, but
after comparing the object with enet's packet->data the object, which is 4
bytes, grows by 4 bytes. Is there a minimum size for packet creation? I can
apply a bit mask for now but it's not scalable since any additional data
will change. I had no trouble sending a struct over so maybe I need to
serialize the objects properly. Any advice would be good,

Cheers,
Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20141218/93cb3100/attachment.html>


More information about the ENet-discuss mailing list