[nanomsg] Re: stackable protocols

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Tue, 13 May 2014 07:53:56 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13/05/14 07:35, Drew Crawford wrote:

> Well one thing it could mean is something like “sender identifier”.
> For example, if every socket had an identifier assigned upon
> creation, every message was prepended by this identifier, and the
> identifier was stripped from the message and made available via
> getsocketopt separately.

That's exactly what you get on the protocol layer (protocol.h) struct
nn_pipe* represents an individual peer. You get it when a message is
received, you can send a message to it. You are even notified about
added peers and removed peers.

Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTcbN0AAoJENTpVjxCNN9Y6rgH/2SgevEInDHow8xwB7Lkq+3H
CtMwaHNGVMDsrqGA9mmsnd5Bcy3K5kmm3sQgfK+4LgfAWb4+q508iMKTknAe34lr
RD69jyeNZ3AAJi4jQ13xZ37yjqYwt4yKltUZ/i+tASfsrqPjIQlLejNPSFOH7QLQ
O/DgxVTJ5Kx/W9bM1o8Ekxbfp9qZGDtquys5rLpMk1AWozCUEHLxfvyktQL/y5Se
wffBGgLl0zwVvtHgc/V/m1ovXKQEbiafonvgD8esfsTRLnCxgWzTmUpdgG1mmbcN
Z4TFjXXLSDqn17oyoBqjyxQG4ZVjToFmeAsiF9So7f+n0B+oZ/WcrwlxNeua5Rw=
=ptW1
-----END PGP SIGNATURE-----

Other related posts: