Comparison

net/stun.lua @ 12369:f2ae9c6d1d9f

net.stun: Name some more attributes from TURN
author Matthew Wild <mwild1@gmail.com>
date Sat, 05 Mar 2022 11:00:08 +0000
parent 12368:d82c8efc6dd5
child 12370:9889b1815d31
comparison
equal deleted inserted replaced
12368:d82c8efc6dd5 12369:f2ae9c6d1d9f
84 ["password-algorithms"] = 0x8002; 84 ["password-algorithms"] = 0x8002;
85 ["alternate-domains"] = 0x8003; 85 ["alternate-domains"] = 0x8003;
86 86
87 -- TURN 87 -- TURN
88 ["requested-transport"] = 0x0019; 88 ["requested-transport"] = 0x0019;
89 ["xor-peer-address"] = 0x0012;
90 ["data"] = 0x0013;
91 ["xor-relayed-address"] = 0x0016;
89 }; 92 };
90 local attribute_lookup = lookup_table(attributes); 93 local attribute_lookup = lookup_table(attributes);
91 94
92 function packet_methods:serialize_header(length) 95 function packet_methods:serialize_header(length)
93 assert(#self.transaction_id == 12, "invalid transaction id length"); 96 assert(#self.transaction_id == 12, "invalid transaction id length");