68 end |
68 end |
69 end |
69 end |
70 return process_args(arg); |
70 return process_args(arg); |
71 end |
71 end |
72 end |
72 end |
73 process_args(arg); |
73 if #arg > 0 then |
|
74 process_args(arg); |
|
75 else |
|
76 flags.help(); |
|
77 os.exit(1); |
|
78 end |
|
79 |
|
80 if not server then |
|
81 io.stderr:write("ERROR: No server address specified.\n"); |
|
82 os.exit(1); |
|
83 end |
74 |
84 |
75 local received_cache = {}; |
85 local received_cache = {}; |
76 local function _test(server, port, question, answer) |
86 local function _test(server, port, question, answer) |
77 local received = received_cache[question]; |
87 local received = received_cache[question]; |
78 if not received then |
88 if not received then |