node daemon ex

This commit is contained in:
lxsang 2017-06-05 19:14:17 +02:00
parent 4ff6338e72
commit e07e91ac9c

View File

@ -22,7 +22,7 @@ struct master_conf_t mconfig;
call __init__ = init; call __init__ = init;
char* get_ip_address() /*char* get_ip_address()
{ {
struct ifaddrs* addrs; struct ifaddrs* addrs;
getifaddrs(&addrs); getifaddrs(&addrs);
@ -41,7 +41,7 @@ char* get_ip_address()
} }
freeifaddrs(addrs); freeifaddrs(addrs);
return "127.0.0.1"; return "127.0.0.1";
} }*/
int inform_master() int inform_master()
{ {
int sockfd; int sockfd;