Forums > MaxMSP

Read file into Buf and send over TCP

June 20, 2013 | 12:42 pm

Hi,

Im wondering is there any way I can send an xml file over TCP, by reading the file into buf (buffer)? A rather Large one.

Ive tried using mxj tcpClient , but I cant seem to get it to send more than a few chars at a time.

Im on 64bit here, so hoping any solutions will be compatible.

Cheers

n


June 20, 2013 | 4:11 pm

You may give a shot to [sadam.tcpSender] and [sadam.tcpReceiver] from The sadam Library, see http://cycling74.com/forums/topic/announce-the-sadam-library-version-2012-10-08 . In fact, if it’s really long data, I suggest you to compress it first with [sadam.lzo] (it’s in the same library). The help file actually contains an example on how to send compressed data over TCP, if I remember well (I made it quite a few years ago).

Hope that helps,
Ádám


June 20, 2013 | 5:43 pm

Hi Adam,
Unfortunately, 64 bit is a requirement for this project. I cant see any mxe64 files in the sadam releases :(


Viewing 3 posts - 1 through 3 (of 3 total)