mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 03:47:53 +08:00
add acl::acl_cpp_init() for some samples which were needed by Windows OS.
This commit is contained in:
parent
3295c10aea
commit
b601b629e5
@ -38,6 +38,8 @@ int main(int argc, char* argv[])
|
||||
if (argc >= 2)
|
||||
addr = argv[1];
|
||||
|
||||
acl::acl_cpp_init();
|
||||
|
||||
int max = 100;
|
||||
std::vector<acl::socket_stream*> conns;
|
||||
std::vector<acl::thread*> threads;
|
||||
|
@ -85,6 +85,7 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
}
|
||||
|
||||
acl::acl_cpp_init();
|
||||
acl::log::stdout_open(true);
|
||||
|
||||
std::vector<acl::thread*> threads;
|
||||
|
@ -11,6 +11,8 @@ int main(int argc, char* argv[])
|
||||
if (argc >= 2)
|
||||
addr = argv[1];
|
||||
|
||||
acl::acl_cpp_init();
|
||||
|
||||
if (client.open(addr, 0, 0) == false)
|
||||
{
|
||||
printf("open %s error\n", addr.c_str());
|
||||
|
@ -15,6 +15,8 @@ int main(int argc, char* argv[])
|
||||
if (argc >= 2)
|
||||
addr = argv[1];
|
||||
|
||||
acl::acl_cpp_init();
|
||||
|
||||
if (client.open(addr, 0, 0) == false)
|
||||
{
|
||||
printf("open %s error\n", addr.c_str());
|
||||
|
@ -11,6 +11,8 @@ int main(int argc, char* argv[])
|
||||
if (argc >= 2)
|
||||
addr = argv[1];
|
||||
|
||||
acl::acl_cpp_init();
|
||||
|
||||
if (server.open(addr) == false)
|
||||
{
|
||||
printf("open %s error\r\n", addr.c_str());
|
||||
|
@ -37,6 +37,7 @@ int main(int argc, char* argv[])
|
||||
acl::server_socket server;
|
||||
acl::string addr = "127.0.0.1:9001";
|
||||
|
||||
acl::acl_cpp_init();
|
||||
acl::log::stdout_open(true);
|
||||
|
||||
if (argc >= 2)
|
||||
|
@ -10,6 +10,8 @@ int main(int argc, char* argv[])
|
||||
if (argc >= 2)
|
||||
addr = argv[1];
|
||||
|
||||
acl::acl_cpp_init();
|
||||
|
||||
if (server.open(addr) == false)
|
||||
{
|
||||
printf("open %s error\r\n", addr.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user