8000 IPC between Python and Java · Issue #503 · zeromq/jzmq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
IPC between Python and Java #503
Open
@qeroll

Description

@qeroll

Hi,

I am trying to communicate over IPC using a JZMQ subscriber and PyZMQ publisher but messages are received in the JZMQ side.
I have checked my publisher using a Python subscriber and did it work.

Any ideas? Is that perhaps not supported?

The JZMQ code:

ZContext context = new ZContext();
Socket subscriber = context.createSocket(SocketType.SUB);
subscriber.connect("ipc://001);
subscriber.subscribe("".getBytes());
byte[] data = subscriber.recv();

The PyZMQ code:

import zmq

ZMQ_SERVER_ADDRESS = "ipc://001"

context = zmq.Context()
socket = context.socket(zmq.PUB)
socket.bind(ZMQ_SERVER_ADDRESS)
socket.send(b"1234")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0