@@ 28-28 (lines=1) @@ | ||
25 | return 'RCODE_' + rcode |
|
26 | } |
|
27 | ||
28 | exports.toRcode = function (code) { |
|
29 | switch (code.toUpperCase()) { |
|
30 | case 'NOERROR': return 0 |
|
31 | case 'FORMERR': return 1 |
@@ 28-28 (lines=1) @@ | ||
25 | return 'OPCODE_' + opcode |
|
26 | } |
|
27 | ||
28 | exports.toOpcode = function (code) { |
|
29 | switch (code.toUpperCase()) { |
|
30 | case 'QUERY': return 0 |
|
31 | case 'IQUERY': return 1 |