2 //=============================================================================
6 * Client driver program for drwho.
8 * @author Douglas C. Schmidt
10 //=============================================================================
13 #include "ace/Log_Msg.h"
16 #include "SML_Client.h"
17 #include "SMR_Client.h"
18 #include "ace/OS_Memory.h"
25 SM_Client
*client
= 0;
27 if (Options::get_opt (Options::REMOTE_USAGE
) == 0)
28 ACE_NEW_RETURN (client
,
32 ACE_NEW_RETURN (client
,
33 SMR_Client (Options::port_number
),
39 ACE_TMAIN (int argc
, ACE_TCHAR
*argv
[])
41 Options::set_options (argc
, argv
);
43 SM_Client
*sm_client
= make_client ();
45 if (sm_client
->send () < 0)
46 ACE_ERROR_RETURN ((LM_ERROR
,
48 Options::program_name
),
51 if (sm_client
->receive (Options::max_server_timeout
) < 0)
52 ACE_ERROR_RETURN ((LM_ERROR
,
54 Options::program_name
),
57 sm_client
->process ();