[nanomsg] Re: Port sharing, tcpmux, web-related roadmap et c.

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Thu, 20 Nov 2014 05:30:56 +0100

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

Hi Bent,


> What sort of I/O model, blocking or async (I would imagine 
> implementing select and poll) presents the lowest average cost for 
> binding communication between the tcpmux daemon and its
> corresponding recv function in nanomsg?
> 
> Would the tcpmux daemon issue some sort of signal or call to 
> nn_recv?

First of all, tcpmux daemon is involved only in the connection
establishment phase. After that it hands the connection to the
application and gets out of the way. Therefore, performance-wise,
tcpmux is equivalent to simple tcp transport.

If you want to look at the code, the connection hand-over is done here:

https://github.com/nanomsg/nanomsg/blob/tcpmux/src/devices/tcpmuxd.c#L282

Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJUbW5/AAoJENTpVjxCNN9Y2ZEH/2NbNpjdSrbXZgJxQOylLhRE
x1Us3ZDQFvrKyzmWN9iErXKJwIfh/p9yTx7hrrDw3UVi+e2SxcBbIrQ3K44S5W2/
gyvJ+vzTStn1K4CmUcIJNeFeEX6PqlYQLdANbTYN90ANZuZxeYF4X7zz4Z85yzny
NksFEpwUWm0/qfG2zC/Bl2uaNtYGPTgwh810iPRR/4wtFpL+p3Ir81VaLMRhdG+u
By1dj4e3cL1PUP3oAlm259nt2z8Stns3fY/P5hvpFy05KLzQZXly9BZ3+EWWF7kX
14aqH3T4iP9dLkEgiCh+iyUKczW//UAM9gOskXwYQIhcuZkUcke1MexMzOrX2vA=
=+4oc
-----END PGP SIGNATURE-----

Other related posts: