30-09-2006, 01:16 PM
You don't understand what zlib does do you? Well here it is.
Just using strings with zlib:
does zlib need a string to enrypt? or can it encrypt byte arrays?
If it can decrypt byte arrays faster(which it should) theres probably a better way.
Just using strings with zlib:
Code:
If Len(TmpStr) > 0 Then
TmpStr = Compress(TmpStr, lR)
TmpStr = lR & SEP_CHAR & TmpStr
dbytes = StrConv(TmpStr, vbFromUnicode)
If IsConnected(i) Then
GameServer.Sockets(i).WriteBytes dbytes
DoEvents
End If
End If
If it can decrypt byte arrays faster(which it should) theres probably a better way.