[英]Erlang: how to set or check TTL in UDP packets?
gen_udp does not currently provide a way to do this. gen_udp目前没有提供这样做的方法。 you would need to modify the inet layer below it to allow for this new functionality.
您需要修改它下面的inet层以允许这个新功能。 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.
这样做并不困难,如果你看看他们允许设置的其他选项,比如multicast_ttl,你可以实现gen_udp:send,recv和open,允许这个suppoert。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.