MCPcopy Create free account
hub / github.com/acl-dev/acl / init

Function init

lib_acl/samples/dgate/main.cpp:12–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10static const char *__conf_file = "dgate.cf";
11
12static void init(void)
13{
14 acl_socket_init();
15 conf_load(__conf_file);
16
17 printf("local port: %d\r\n", var_cfg_server_port);
18
19 //acl_msg_open("dgate.log", "dgate");
20 acl_msg_stdout_enable(1);
21
22 __service = service_create("0.0.0.0", (short) var_cfg_server_port,
23 var_cfg_dns_neighbor_ip, var_cfg_dns_neighbor_port);
24
25 printf("neighbor dns_ip: %s, dns_port: %d\r\n",
26 var_cfg_dns_neighbor_ip, var_cfg_dns_neighbor_port);
27}
28
29static void run(void)
30{

Callers 1

mainFunction · 0.70

Calls 4

acl_socket_initFunction · 0.85
conf_loadFunction · 0.85
acl_msg_stdout_enableFunction · 0.85
service_createFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…