[ENet-discuss] ENetPacket to std::string

ingmar wirths ingmania at googlemail.com
Mon Mar 28 09:12:28 PDT 2011

Slav: Thanks, that did the trick. At first, i was a little confused why, but
of course, enet_uint8 is a unsigned char.

2011/3/28 Slav <slavmfm at gmail.com>:
> Try
> std::string my_string ((char*)packet->data, packet->dataLength);
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss

More information about the ENet-discuss mailing list