help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing variables between octave processes on the same machine - SOL


From: Pavel Hofman
Subject: Re: Passing variables between octave processes on the same machine - SOLVED
Date: Mon, 21 Jan 2019 08:51:29 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Hi,
Dne 20. 01. 19 v 21:10 Pavel Hofman napsal(a):
Hi Olaf,


For data exchange between different machines, you could look at
'var2bytea' and 'bytea2var' from the 'database' package. 'var2bytea'
returns a binary string for each input variable, similarly to save
('-', ...). This string has to be sent over and given as input to
'bytea2var' at the other side.

The combination of var2bytea/bytea2var and zeromq in ZMQ_PAIR mode seems to work great. No need to use any separator, every zmq_send results in reception of one message with the serialized variable. Passing a struct with details is very comfortable this way. The ZMQ_DONTWAIT flag controls the blocking behavior properly - very convenient.

Both packages are pre-compiled in the Win64 build too, no extra deployment steps required for that OS.

Guys, thanks a lot for your help!

Best regards,

Pavel.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]