summaryrefslogtreecommitdiff
path: root/TAO/examples/Callback_Quoter/supplier.cpp
blob: befb3418fd029ae3e5c569b4de3964a8ecebed5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// $Id$

#include "Supplier_i.h"
#include "ace/Argv_Type_Converter.h"

// This function runs the Callback Quoter Supplier daemon.

int
ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
  ACE_Argv_Type_Converter convert (argc, argv);
  Supplier supplier;

  ACE_DEBUG ((LM_DEBUG,
              "\n\tMarket Status Supplier Daemon\n\n"));

  if (supplier.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
    return -1;
  else
    return supplier.run ();
}