Import Geant4 3.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:10:37 +02:00
parent 137e303ecc
commit 36c080dca6
3464 changed files with 119310 additions and 52696 deletions
@@ -1,12 +1,28 @@
// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4FRClientServer.cc,v 1.3 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
// $Id: G4FRClientServer.cc,v 1.4.2.1 2001/06/28 19:15:34 gunter Exp $
// GEANT4 tag $Name: $
//
// Satoshi TANAKA, Wed Jul 3 14:14:29 JST 1996
////////////////////////////////
@@ -18,8 +34,6 @@
#ifdef G4VIS_BUILD_DAWN_DRIVER
//=================//
#include "G4FRSocketConfig.hh"
#include "G4FRSocketMacro.hh"
#include "G4FRClientServer.hh"
// #define DEBUG_CLIENT_SERVER
@@ -33,7 +47,7 @@ const int DEFAULT_PORT_NUMBER = 40701 ;
const int MAX_BINDING_TRIAL = 10 ;
const int BINDING_TRIAL_INTERVAL = 5 ;
const int MAX_CONNECT_TRIAL = 10 ;
const char FR_DEFAULT_HOST_NAME[] = "localhost" ;
//----- G4FRClientServer::G4FRClientServer ()
G4FRClientServer::G4FRClientServer ( char terminator , char end_line ) :
@@ -227,27 +241,11 @@ int G4FRClientServer::ConnectINET()
#if defined DEBUG_CLIENT_SERVER
Err("G4FRClientServer::ConnectINET(), gethostbyname");
#endif
//----- get server name
if( GET_HOSTNAME( server_hostname, sizeof( server_hostname ) ) < 0 )
{ Err("G4FRClientServer::ConnectNET(), GET_HOSTNAME");}
//----- get IP address of server from its name
if( !(server_host_p = gethostbyname( server_hostname ) ) )
{ Err("G4FRClientServer::ConnectINET(), gethostbyname");}
server_host_p = gethostbyname( FR_DEFAULT_HOST_NAME ) ;
}
} else {
//----- If FR_ENV_SERVER_HOST_NAME is not set,
//...... server host is set to the same as the
//...... client host.
//----- get server name
if( GET_HOSTNAME( server_hostname, sizeof( server_hostname ) ) < 0 )
{ Err("G4FRClientServer::ConnectNET(), GET_HOSTNAME");}
//----- get IP address of server from its name
if( !(server_host_p = gethostbyname( server_hostname ) ) )
{ Err("G4FRClientServer::ConnectINET(), gethostbyname");}
server_host_p = gethostbyname( FR_DEFAULT_HOST_NAME ) ;
}