mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 16:58:22 +01:00
node daemon ex
This commit is contained in:
parent
4ff6338e72
commit
e07e91ac9c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user