Segfaults, bad messages, and encryption

0 views
Skip to first unread message

LANS

unread,
Nov 24, 2008, 10:23:18 PM11/24/08
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

LANS

unread,
Nov 24, 2008, 10:23:55 PM11/24/08
to Xsera Development
oh by the way, my new leopard install on my G4 700 will compile
without issues.
Reply all
Reply to author
Forward
0 new messages