[nanomsg] Re: Simple PUB/SUB crashing

  • From: Gerry Steele <gerry.steele@xxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Mon, 16 Jun 2014 08:31:47 +0100

Well that's embarrassing, Thanks Martin
On 16 Jun 2014 08:23, "Martin Sustrik" <sustrik@xxxxxxxxxx> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 15/06/14 14:19, Gerry Steele wrote:
> > I'm trying get a hello world type PUB/SUB example working using
> > the example provided but it simply core dumps on me on receiving
> > messages and I'm a bit of a dead end. Any ideas would be welcome.
>
> You want to replace this:
>
> int bytes = nn_recv(sock, buf, NN_MSG, 0);
>
> by this:
>
> int bytes = nn_recv(sock, &buf, NN_MSG, 0);
>
> HTH,
> Martin
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJTnptNAAoJENTpVjxCNN9Yqb4H/An7uf1ZTDsLB/w7uFRK5dNf
> V2Z4IkrG+Q5qQt02sP2+R8uo3XkZLqA0FSO1XCeuNrVR4mLxpEX3Fdg1Si6lkL93
> mO7tReJ00d0ywTiDkpjiXBpjRce5dWZgeGl2iDEVN27BcHc6392fuhYgYVr16rgB
> UggKLPY8JtuRd2WKMAH2pqYj9lOpjyEezBA/A/eOT45e29d3AjC2jOGehVJHiIoJ
> OuR+BoD7lFmH4hPOQm6s9zqRoYihLikV0A+TQPwXpHT7gIuwdlfMeSM7w49k/uL9
> 2ey2m1GgO4VHUJlD9fsB6lhvM0aBSv9jwrbsJocTB7bz/pjLV8E3K3zpUTfBneU=
> =onya
> -----END PGP SIGNATURE-----
>
>

Other related posts: