98
98
const module::option_map &vm= context.getOptions();
100
100
context.add(new StatusTable);
101
context.add(new ListenDrizzleProtocol("drizzle_protocol", vm["bind-address"].as<std::string>(), true));
101
ListenDrizzleProtocol *protocol=new ListenDrizzleProtocol("drizzle_protocol", vm["bind-address"].as<std::string>(), true);
102
104
context.registerVariable(new sys_var_constrained_value_readonly<in_port_t>("port", port));
103
105
context.registerVariable(new sys_var_constrained_value_readonly<uint32_t>("connect_timeout", connect_timeout));
104
106
context.registerVariable(new sys_var_constrained_value_readonly<uint32_t>("read_timeout", read_timeout));