Comparison

net/stun.lua @ 12367:7a2f036f73b3

net.stun: Hyphenate method names for consistency
author Matthew Wild <mwild1@gmail.com>
date Sat, 05 Mar 2022 10:57:47 +0000
parent 12360:0801db678f5e
child 12368:d82c8efc6dd5
comparison
equal deleted inserted replaced
12366:c640717e01ca 12367:7a2f036f73b3
39 -- TURN 39 -- TURN
40 allocate = 0x003; 40 allocate = 0x003;
41 refresh = 0x004; 41 refresh = 0x004;
42 send = 0x006; 42 send = 0x006;
43 data = 0x007; 43 data = 0x007;
44 create_permission = 0x008; 44 ["create-permission"] = 0x008;
45 channel_bind = 0x009; 45 ["channel-bind"] = 0x009;
46 }; 46 };
47 local method_lookup = {}; 47 local method_lookup = {};
48 for name, value in pairs(methods) do 48 for name, value in pairs(methods) do
49 method_lookup[name] = value; 49 method_lookup[name] = value;
50 method_lookup[value] = name; 50 method_lookup[value] = name;