sugoidogo / haxe-ipc

IPC library written in haxe for all haxe targets.
GNU Lesser General Public License v2.1
2 stars 0 forks source link

Support AIR #1

Open datee opened 4 years ago

datee commented 4 years ago

Not all targets seem to work. sys.io.Process is not supported in AIR. Is it possible to add support for this using Nativeprocess in AIR?

sugoidogo commented 4 years ago

I've just learned that this page indicates that the entire sys package is not available on Flash or JavaScript, so I'm assuming one of those is your target. Both the process and socket clients depend on the sys package to get Input and Output objects for the IOClient. If you can get such objects for both child and parent, you could use that class directly. Otherwise, we'd have to write a whole new implementation for non-sys targets, which I will start on but no promises about how long that will take, as I have no experience with Flash or Javascript.

sugoidogo commented 4 years ago

@datee can you confirm that AIR = Adobe AIR and that your Haxe target is Flash?

datee commented 4 years ago

Sorry, yes Adobe AIR / Flash target. And you are correct, the sys package is not supported for JS / Flash targets. The AIR runtime has access to NativeProcess, which is more or less the same as sys.io.Process, so with some adjustments it should be possible to use that when targeting AIR. (Only the AIR runtime has this, not the normal flash runtime.) https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeProcess.html

sugoidogo commented 4 years ago

Sorry for the delayed response, my nic went out. Are you using one of the AIR externs on haxelib or is there a different way to get access to the air runtime @datee