Read file into Buf and send over TCP

Jun 20, 2013 at 12:42pm

Read file into Buf and send over TCP

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

#253468
Jun 20, 2013 at 4:11pm

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

#253488
Jun 20, 2013 at 5:43pm

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

#253501

You must be logged in to reply to this topic.