   ENet Server Is Receiving Strange Packet
  Hi.First, I made a conection between the client and the server. I send a packet to the server on connection wich contains "packet" like this :string Pack = "packet";ENetPacket * packet = enet_packet_create (Pack.c_str(), Pack.length() + 1, ENET_PACKET_FLAG_RELIABLE);enet_peer_send (event.peer, 0, packet);Everything's fine, the client receive the packet without any problem. In the client reception, I made a send packet to the server wich contains "ClientToServer" like thisstring Pack = "ClientToServer";ENetPacket * packet = enet_packet_create (Pack.c_str(), Pack.length() + 1, ENET_PACKET_FLAG_RELIABLE);enet_peer_send (event.peer, 0, packet);It's done same so I don't understand why it doesn't work. It Usually output something like this : °↓Z☺ .♂And when i'm very lucky, it output something like this : °↓Ø☺ .♂ServerIt's never really the same thing that is output...I hope somebody will be able to help me. Chiaow.   
  You're assuming the problem is in the sending code. Where's your receiving code? And how are you printing out the content of the message?   ;  on the server it's like this (we're it's strange) :printf("A packet of length %u containing %s was received from %s on channel %u.\n", event.packet->dataLength, event.packet->data, event.peer->data, event.channelID);And on Client it's like this : printf("A packet of length %u containing [%s] was received from %s on channel %u\n", event.packet->dataLength, event.packet->data, event.peer->data, event.channelID);it's really similar so i don't assume it's there.But i also tried cout << event.packet->data << endl; and it's the same outputEDIT : I still don't know where is the problem, but with a sample client, everything's fine. I'll do with that for the moment and later (when i'll be doing the client) i'll try to find what the hell was the problem.Thanks for your time thought.[Edited by - koolgraph on May 29, 2010 7:04:15 AM]