Sep 4th, 2005, 08:54 PM
#1
Thread Starter
Fanatic Member
Can you send a multi-dimensional byte array via winsock?
Or is it just a single-dimension array?
Last edited by Nove; Sep 4th, 2005 at 10:53 PM .
Sep 4th, 2005, 09:29 PM
#2
Re: Can you send a multi-dimensional byte array bia winsock?
In my experience, its just single. You could possibly write a small hack though to allow for multi-dimensional arrays.
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
Sep 7th, 2005, 09:19 AM
#3
Lively Member
Re: Can you send a multi-dimensional byte array via winsock?
You could try sending it in serialized form (can you even do that with multi-dim arrays I wonder?), or loop through it and send in a certain order so that it can easily be reconstructed after it is sent.
Sep 20th, 2005, 09:58 AM
#4
Addicted Member
Re: Can you send a multi-dimensional byte array via winsock?
you can send it though with a character to split it.
IE
12345,12345,12345,12345,12345,12345,
Then just use the split command at the other end to split it up then useing that info re-create the Array.
Sep 20th, 2005, 03:24 PM
#5
Thread Starter
Fanatic Member
Re: Can you send a multi-dimensional byte array via winsock?
Wouldn't that basically quadruple the file size?
Sep 21st, 2005, 04:33 PM
#6
Frenzied Member
Re: Can you send a multi-dimensional byte array via winsock?
Here is a quick hack that shows how to move the 2D array to a 1D array and send it. There is no change in the size of the data sent.
It will also display the order in which the 2D array contents are stored in memory if you click the check box before clicking the Send button.
Attached Files
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width