views:

52

answers:

1

Is AIR nativeprocess able to receive message from Java program and process every line of message as fast as possible in milliseconds? Does it has a miss read or delay?

A: 

The best option is to use the AIR NativeProcess to launch a Java app that listens on a Socket. Then the AIR app connects to that Socket to communicate with the Java app. The Merapi Project sets all of this up for you.

James Ward
Is that still faster? I've been using NativeProcess to communicate to a python script that's listening for serial input, as an alternative to using sockets - I'm almost done building it, haven't done a speed test yet. Sockets are still going to be better?
Myk
I'm pretty sure sockets will be faster than STDOUT. But I don't have data to back that up.
James Ward
Hi James ward, would you mind to test that? I will looking forward to see your blog. It is important to make the right one since I will need to handle lot of data from MIDI :D
I won't have a chance to test that for a while but I'm pretty confident that Sockets is the way to go.
James Ward