[ENet-discuss] ENetPacket to std::string

Daniel Aquino mr.danielaquino at gmail.com
Mon Mar 28 08:33:11 PDT 2011

A quick google search gave this link where the last post sounds like it
might be your answer:


But that's really a c++ question not ENet.

On Mon, Mar 28, 2011 at 11:26 AM, ingmar wirths <ingmania at googlemail.com>wrote:

> Hi,
> i'm getting a little frustrated trying to put the content of a packet
> into a string.
> What i simply want to do is something like:
> std::string my_string (packet->data, packet->dataLength);
> This doesn't compile however. I kind of get the idea why not, fiddled
> around a little,
> but could'nt get it working.
> I guess someone did this before, any ideas?
> Thanks,
> ingmar
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20110328/773330cb/attachment.html>

More information about the ENet-discuss mailing list