fix initialization of simple client
This commit is contained in:
parent
f8753fb9f1
commit
433db17083
@ -66,16 +66,19 @@ int main(int argc, const char *argv[])
|
|||||||
{
|
{
|
||||||
std::string ip_address;
|
std::string ip_address;
|
||||||
int ip_port, requested_thread_num;
|
int ip_port, requested_thread_num;
|
||||||
bool use_shared_memory = false, trial = false;
|
bool use_shared_memory = false, trial_run = false;
|
||||||
ServerPaths server_paths;
|
ServerPaths server_paths;
|
||||||
if (!GenerateServerProgramOptions(argc,
|
|
||||||
|
const unsigned init_result = GenerateServerProgramOptions(argc,
|
||||||
argv,
|
argv,
|
||||||
server_paths,
|
server_paths,
|
||||||
ip_address,
|
ip_address,
|
||||||
ip_port,
|
ip_port,
|
||||||
requested_thread_num,
|
requested_thread_num,
|
||||||
use_shared_memory,
|
use_shared_memory,
|
||||||
trial))
|
trial_run);
|
||||||
|
|
||||||
|
if (init_result == INIT_FAILED)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user