oxen-io / oxen-mq

Communications layer used for both the Oxen storage server and oxend
https://oxen.io
BSD 3-Clause "New" or "Revised" License
19 stars 35 forks source link

Add support for inproc: connections #43

Closed jagerman closed 3 years ago

jagerman commented 3 years ago

inproc support is special in zmq: in particular it completely bypasses the auth layer, which causes problems in OxenMQ because we assume that a message will always have auth information (set during initial connection handshake).

This adds an "always-on" inproc listener and adds a new connect_inproc method for a caller to establish a connection to it.

It also throws exceptions if you try to listen_plain or listen_curve on an inproc address, because that won't work for the reasons detailed above.