gen_udp does not currently provide a way to do this. you would need to modify the inet layer below it to allow for this new functionality. It would not be difficult to do so, if you look at the other options they allow setting, like multicast_ttl and you can probably implement a gen_udp:send,recv and open that allow for this suppoert.
发布评论
评论(1)
gen_udp 当前不提供执行此操作的方法。 您需要修改其下面的 inet 层以允许此新功能。 如果您查看它们允许设置的其他选项(例如multicast_ttl),那么这样做并不困难,并且您可能可以实现允许此支持的gen_udp:send,recv和open。
gen_udp does not currently provide a way to do this. you would need to modify the inet layer below it to allow for this new functionality. It would not be difficult to do so, if you look at the other options they allow setting, like multicast_ttl and you can probably implement a gen_udp:send,recv and open that allow for this suppoert.