version 1.4.4.1, 2013/01/18 10:17:22
|
version 1.5, 2017/10/08 22:49:25
|
Line 48 SUCH DAMAGE.
|
Line 48 SUCH DAMAGE.
|
#include "mqttd_calls.h" |
#include "mqttd_calls.h" |
|
|
|
|
inline int | int |
srv_Socket(cfg_root_t * __restrict cfg) |
srv_Socket(cfg_root_t * __restrict cfg) |
{ |
{ |
int s = -1; |
int s = -1; |
Line 56 srv_Socket(cfg_root_t * __restrict cfg)
|
Line 56 srv_Socket(cfg_root_t * __restrict cfg)
|
u_short port; |
u_short port; |
sockaddr_t sa = {{ 0 }}; |
sockaddr_t sa = {{ 0 }}; |
|
|
ETRACE(2); | ETRACE(); |
|
|
assert(cfg); |
assert(cfg); |
|
|
Line 81 srv_Socket(cfg_root_t * __restrict cfg)
|
Line 81 srv_Socket(cfg_root_t * __restrict cfg)
|
return s; |
return s; |
} |
} |
|
|
inline int | int |
srv_Close(int s) |
srv_Close(int s) |
{ |
{ |
ETRACE(2); | ETRACE(); |
|
|
EVERBOSE(7, "Closing socket=%d\n", s); |
EVERBOSE(7, "Closing socket=%d\n", s); |
return mqtt_srv_Destroy(s); |
return mqtt_srv_Destroy(s); |