Forums > MaxMSP

How to receive data stream via TCP

January 12, 2014 | 12:15 am

I am having problems receiving a stream of data in a TCP package into Max.

The data stream is coming from a python application and I can see it is streaming via the terminal…but nothing in Max!

I am using the mxj.net.tcp.recv object and have changed the address and port to match that of the server.

I’d be so grateful if anyone could tell me what i’m dojng wrong as i’m a bit baffled…

<code>

– Pasted Max Patch, click to expand. –

</code>


January 13, 2014 | 12:49 pm

I’d take a look at node.js and osc-web and try sending from node.js as osc to Max.


January 14, 2014 | 3:30 am

Try sadam.tcpReceiver, included in this library: http://www.sadam.hu/en/software


January 14, 2014 | 4:12 am

Thanks Patrick, but it seems that the sadam library can only receive binary data. I am dealing with an arbitrary data stream.

DRKOSS, I was hoping to keep the data in TCP for simplicity on the python side (i’m not confident coding). But his may be the only options…

…any other ideas…?


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