-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello Paulo!
On Jul 21, 2016, at 6:53 AM, Paulo Brizolara <
souzabr...@gmail.com> wrote:
> i am having troubles in using multicast with smcp.
>
> I am trying to:
>
> 1. Receive multicast requests in server
> 2. Allow clients to receive multiple responses (from different
> servers) after doing a multicast request
>
> I have tried with the 0.6.5 release and with the code from master
> branch on github.
>
> Looks like sending a package to a multicast address is fine.
> However, i still don't know how to receive multiple responses. Using
> `SMCP_TRANSACTION_NO_AUTO_END` flag i could partially achieve that.
> But after receiving the first response, the transaction timeout
> after a while (even when setting the timeout to a big value).
I'm pretty sure that multicast support is broken in release 0.06.05.
Receipt of IPv6 multicast packets does work for me using the `master`
branch, but honestly I haven't tried getting multiple responses. What
you are doing should work. I should probably a test case.
Please file an issue on github and I'll look into this. I can't
imagine it is something very difficult to get working, as very similar
machinery is already in place for observing. I suspect the duplicate
detection might somehow be going awry.
> Also i cannot receive any multicast message on a smcp server.
> Inspecting the source code, looks like it should join to coap
> multicast address automatically.
Are you using IPv4 or IPv6? For some reason I'm having trouble with
IPv4 multicast.
> But this is not done on the server socket (but in separated
> sockets). The only way, i could receive multicast messages was using
> `smcp_plat_get_fd` to get the socket and joining it to a multicast
> address "manually".
Although I seem to have had good experiences with multicast support
recently, sounds like something is definitely still broken. Go ahead
and file an issue on GitHub and we will get this sorted out.
Thanks!
- -\- RQ
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCAAGBQJXkRdgAAoJEE6OLsxF2Ko6BJ4H/1N/9++4HntfUAXJqSyXrwxW
Pp4ByTij0dfRDO2e378tUMzlRYkroqgIlkHAy/GKZee0kJRbpfeefDLFPpNkj5ge
/PdoyD7cz0eXQDoYtvfPbvHzoajyOSzB0q1Dw53/8k0V9kOfn7H6V2+u13iBmq4Q
rD5/9152GidD8h3eiJFrMR5kUWBozPtWaSaqhi9P9QF14rqZMCWSuofh7IPIDp3V
unVNbm3JZzK12uawD/YKrhrnJs0RD/t/SiOEQSa0KkvceLZ3rORR4wJVbUJcnshu
NNns0qgGpaX0T7llRMwR4T2F51D36QvCofHppxHonR+Y+w/3QIRdcAUMHsSU6lU=
=admA
-----END PGP SIGNATURE-----