@@ -107,9 +107,10 @@ int main(int argc, const char* argv[])
else
puts("type "QUIT_COMMAND" to end.");
service_pumpsp;
single_clientclient(sp);
short_clientclient2(sp);//without single_client, we need to define ASCS_AVOID_AUTO_STOP_SERVICE macro to forbid service_pump stopping services automatically
//demonstrate how to use singel_service
single_service_pump<single_client>client;
//singel_service_pump also is a service_pump, this let us to control client2 via client
short_clientclient2(client);//without single_client, we need to define ASCS_AVOID_AUTO_STOP_SERVICE macro to forbid service_pump stopping services automatically
// argv[2] = "::1" //ipv6
// argv[2] = "127.0.0.1" //ipv4
...
...
@@ -123,24 +124,24 @@ int main(int argc, const char* argv[])