The Stock_StockNameConsumer_i class is generated automatically by the IDL compiler (using the -GI flag), which is a subclass of POA_Stock::StockNameConsumer class.
    Stock_StockNameConsumer_i::Stock_StockNameConsumer_i (Stock_StockBroker_i &context,
                                                          const char *stock_name)
      : context_ (context),
        stock_name_ (stock_name)
The "context_" and "stock_name_" are two private members of the Stock_StockNameConsumer_i class. They stand for the
context of the StockNameConsumer object and the name of the stock to listen to respectively. 
    Stock::StockQuoter_var quoter = context_->get_connection_quoter_info ();
    Stock::StockInfo_var stock_info = quoter->get_stock_info (the_stockname->name());
    return this->cookie_.in ();
    this->cookie_ = cookie;
    cookie->_add_ref ();