LANS
unread,Nov 24, 2008, 10:23:18 PM11/24/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Xsera Development
First of all
if(event.packet->dataLength == length)
//evaluate message as normal
this goes in both Server.cpp and Client.cpp. I can add it tomorrow,
but I'm having trouble finding the length of the event-> data.
First of all, is event.packet->dataLength the number of bits or bytes
long the message is?
Second, can I use length = strlen(even.packet->data) or is there a
better length-finding function?
Also, I need somewhere to store a stable variable. I'm giving the
client up to 5 bad packets before it gets kicked. This will eliminate
malicious clients, but allow for bad network connections which corrupt
packets.
On another note, I'm having little luck finding a good way to encrypt
the messages. Any suggestions?
-LANS