LTP GCOV extension - code coverage report
Current view: directory - src/cpp/prod/CORBA - YAConnection.cpp
Test: YAORB-0.2.info
Date: 2006-02-27 Instrumented lines: 11
Code covered: 81.8 % Executed lines: 9

       1                 : //=============================================================================
       2                 : // File <$/src/cpp/prod/CORBA/YAConnection.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/YAConnection.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                 : //==============================================================================
      44                 : // YAConnection : Connection to a remote ORB.
      45                 : //==============================================================================
      46                 : 
      47                 : YAConnection::YAConnection(
      48                 :    const String& host,
      49               0 :    int port)
      50               0 :  : _com(host, port)
      51                 : {
      52                 : }
      53                 : 
      54               2 : YAConnection::YAConnection(int socket)
      55               2 :  : _com(socket)
      56                 : {
      57                 : }
      58                 : 
      59               2 : YAConnection::~YAConnection()
      60                 : {
      61               2 : }
      62                 : 
      63              12 : int YAConnection::GetSocket(void) const
      64                 : {
      65              12 :    return _com.GetSocket() ;
      66                 : }
      67                 : 
      68                 : SocketCom*
      69               4 : YAConnection::GetCom(void)
      70                 : {
      71                 :    return & _com ;
      72                 : }
      73                 : 
      74                 : void
      75               2 : YAConnection::Close(void)
      76                 : {
      77               2 :    _com.Close() ;
      78                 : }
      79                 : 

Generated by: LTP GCOV extension version 1.4