Closed offlinemark closed 9 years ago
instead of appending strings to your tcp packets, reserve say 4 bytes (or 8 bytes since we're transferring files) as raw bytes at the beginning which you can just struct.pack/unpack
instead of appending strings to your tcp packets, reserve say 4 bytes (or 8 bytes since we're transferring files) as raw bytes at the beginning which you can just struct.pack/unpack