[aplusdev] adap (IPC) vs Python shm module
Alexei Zalivine
zalivin at krona.obninsk.ru
Fri Mar 30 23:12:39 EST 2001
John,
>
> Alexei,
>
> If your python is sending character data you can use the `raw protocol to
> read it. This protocol can generate multiple `read events for a "single"
> message, and it is the A+ application that determines when it has received
> a complete message.
>
> The `string protocol is also character based, but expects 4 bytes
> pre-pended to the message containing its length. This protocol doesn't
> generate a `read event until it has the complete message. The header
> information is stripped from the data that is delivered to the callback
> function.
Thank you for advise. But I can't connect to memory. In shm python
(http://sirac.inrialpes.fr/~marangoz/python/shm/) module more simply. Just
define a key and other application (for example other session of python) can
read or send data. But I don't know which arguments I must set for
adap.Connect function.
The adap interface like on TCP/IP protocol. IMHO IPC can work only on the
same computer, but adap.Connect have a host, port arguments...Why?
Thank you,
Alexei.
More information about the apluslist
mailing list