I would pack the whole lot into a string then send that, have a look in the code archives there are loads of x to str functions in there last time I looked. If you pack it all up then send it you will get faster transfer and then just make an unpacker at the other end to retrieve the data.