LTP GCOV extension - code coverage report
Current view: directory - src/cpp/prod/CORBA - YAMThreadServerOrb.cpp
Test: YAORB-0.2.info
Date: 2006-02-27 Instrumented lines: 20
Code covered: 35.0 % Executed lines: 7

       1                 : //=============================================================================
       2                 : // File <$/src/cpp/prod/CORBA/YAMThreadServerOrb.cpp>
       3                 : // This file is part of YaOrb : Yet Another Object Request Broker,
       4                 : // Copyright (c) 2000-2003, Marc Alff.
       5                 : //
       6                 : // This program is free software; you can redistribute it and/or
       7                 : // modify it under the terms of the GNU General Public License
       8                 : // as published by the Free Software Foundation; either version 2
       9                 : // of the License, or (at your option) any later version.
      10                 : //
      11                 : // This program is distributed in the hope that it will be useful,
      12                 : // but WITHOUT ANY WARRANTY; without even the implied warranty of
      13                 : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14                 : // GNU General Public License for more details.
      15                 : //
      16                 : // You should have received a copy of the GNU General Public License
      17                 : // along with this program; if not, write to the Free Software
      18                 : // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
      19                 : //
      20                 : //=============================================================================
      21                 : 
      22                 : // Portability
      23                 : #include "yaorb/config.h"
      24                 : #include "src/cpp/prod/port/port_time.h"
      25                 : #include "src/cpp/prod/port/port_stdc.h"
      26                 : #include "src/cpp/prod/port/port_socket.h"
      27                 : #include "src/cpp/prod/port/port_unistd.h"
      28                 : 
      29                 : #include <sys/types.h>
      30                 : #include <sys/select.h>
      31                 : #include <rpc/types.h>
      32                 : #include <stdio.h>
      33                 : 
      34                 : #include <yaorb/CORBA.h>
      35                 : 
      36                 : #include "src/cpp/prod/CORBA/YAMThreadServerOrb.h"
      37                 : #include "src/cpp/prod/boot/boot.h"
      38                 : #include "src/cpp/prod/tool/DEVELOPMENT.h"
      39                 : #include "src/cpp/prod/tool/Assert.h"
      40                 : #include "src/cpp/prod/protocol/iop/iop.h"
      41                 : #include "src/cpp/prod/protocol/cdr/cdr_memory.h"
      42                 : 
      43                 : // Max number of pending connect request on the _listning socket.
      44                 : const int NUMBER_OF_CONNECTIONS = 5 ;
      45                 : 
      46                 : //==============================================================================
      47                 : // MultiThreadOrb : Server ORB, multi thread.
      48                 : //==============================================================================
      49                 : 
      50               2 : YAMThreadServerOrb::YAMThreadServerOrb(const String & confFileName)
      51                 :  : YAServerOrb(confFileName),
      52               2 :    _maxThread(100)
      53                 : {
      54                 :    CORBA::Boolean brc ;
      55               1 :    String maxThreadStr ;
      56                 : 
      57               1 :    brc = readConf("SERVER", "MAXTHREAD", maxThreadStr) ;
      58               1 :    if (brc == TRUE)
      59                 :    {
      60               0 :       _maxThread = atoi(maxThreadStr) ;
      61               0 :    }
      62               0 : }
      63                 : 
      64               0 : YAMThreadServerOrb::~YAMThreadServerOrb()
      65                 : {
      66               0 : }
      67                 : 
      68              10 : CORBA::Boolean YAMThreadServerOrb::workPending(void)
      69                 : {
      70              10 :    NON_DEV("workPending") ;
      71                 :    return false ;
      72                 : }
      73                 : 
      74               0 : void YAMThreadServerOrb::performWork(void)
      75                 : {
      76               0 :    NON_DEV("performWork") ;
      77                 : }
      78                 : 
      79               0 : void YAMThreadServerOrb::shutdown(CORBA::Boolean waitForCompletion)
      80                 : {
      81               0 :    NON_DEV("shutdown") ;
      82                 : }
      83                 : 
      84               0 : void YAMThreadServerOrb::run(void)
      85                 : {
      86               0 :    NON_DEV("run") ;
      87                 : }
      88                 : 
      89               0 : void YAMThreadServerOrb::handleNewConnection(YAConnection *con)
      90                 : {
      91               0 :    NON_DEV("handleNewConnection") ;
      92                 : }
      93                 : 

Generated by: LTP GCOV extension version 1.4