0-_-0
April 15th, 2003, 06:25 PM
Packet Compilation
Not sure if anyone has any thoughts on the subject but I thought i'd throw it out there just in case...
As far as serializing udt's and classes and such so that they can be sent/recv via winsock, I've tried quite a few methods. But what I'm finding is, being dynamic length, I get faster results using String data type than i do using Byte Arrays due to having to ReDim Preserve a byte array.
So now I'm thinking about just using CopyMemory for the Long2Str and Int2Str and using strings for all the data instead of byte arrays. I'd have to work out the faster methods for string manipulation but thats not too big of a deal.
Guess I was just wondering if anyone has had any success with other ways I might not be thinking of.
Not sure if anyone has any thoughts on the subject but I thought i'd throw it out there just in case...
As far as serializing udt's and classes and such so that they can be sent/recv via winsock, I've tried quite a few methods. But what I'm finding is, being dynamic length, I get faster results using String data type than i do using Byte Arrays due to having to ReDim Preserve a byte array.
So now I'm thinking about just using CopyMemory for the Long2Str and Int2Str and using strings for all the data instead of byte arrays. I'd have to work out the faster methods for string manipulation but thats not too big of a deal.
Guess I was just wondering if anyone has had any success with other ways I might not be thinking of.