Return to utils.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / mqtt / src |
version 1.2.2.3, 2012/04/24 08:06:09 | version 1.2.2.4, 2012/04/25 16:55:33 |
---|---|
Line 7 srv_Socket(cfg_root_t * __restrict cfg) | Line 7 srv_Socket(cfg_root_t * __restrict cfg) |
int s = -1, n = 1; | int s = -1, n = 1; |
ait_val_t v; | ait_val_t v; |
u_short port; | u_short port; |
io_sockaddr_t sa; | io_sockaddr_t sa = {{ 0 }}; |
ioTRACE(2); | ioTRACE(2); |
assert(cfg); | |
cfg_loadAttribute(cfg, "mqttd", "port", &v, MQTT_PORT); | cfg_loadAttribute(cfg, "mqttd", "port", &v, MQTT_PORT); |
port = strtol(AIT_GET_STR(&v), NULL, 0); | port = strtol(AIT_GET_STR(&v), NULL, 0); |