From: Marek P. <ma...@us...> - 2001-08-12 07:35:35
|
Update of /cvsroot/javaprofiler/library/src/setup In directory usw-pr-cvs1:/tmp/cvs-serv724/src/setup Modified Files: setup.cpp setup.h Log Message: changes in library setups; now, library can run in server or client mode (java part not implemented yet) Index: setup.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/setup/setup.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** setup.cpp 2001/08/09 23:22:55 1.3 --- setup.cpp 2001/08/12 07:35:31 1.4 *************** *** 174,180 **** } ! if( !strcmp( name, "commun_shmem_str")) { ! com.shmemStr = value; return; } --- 174,180 ---- } ! if( !strcmp( name, "commun_shmem_id")) { ! com.shmemId = value; return; } *************** *** 182,187 **** if( !strcmp( name, "connect_mode")) { ! if( !strcmp( value, "normal")) com.listenMode = 0; ! else if( !strcmp( value, "listen")) com.listenMode = 1; return; --- 182,187 ---- if( !strcmp( name, "connect_mode")) { ! if( !strcmp( value, "server")) com.connectMode = 0; ! else if( !strcmp( value, "client")) com.connectMode = 1; return; Index: setup.h =================================================================== RCS file: /cvsroot/javaprofiler/library/src/setup/setup.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** setup.h 2001/08/09 23:22:55 1.4 --- setup.h 2001/08/12 07:35:31 1.5 *************** *** 65,72 **** IProf::eCommunType communType; ! /// listening connector mode (1 = on, 0 = off) ! int listenMode; ! /// hostname (if sockets used and connect_mode set to "listen") String hostname; --- 65,72 ---- IProf::eCommunType communType; ! /// connect mode (0 = server, 1 = client) ! int connectMode; ! /// hostname (if sockets used and connect_mode set to "client") String hostname; *************** *** 83,94 **** Com() : ! communType( IProf::COMMUN_SOCKET), ! listenMode( 0), hostname( "127.0.0.1"), port( IProf::COMMUN_PORT), ! shmemSize( IProf::COMMUN_SHMEM_SIZE), ! shmemId( "com") {}; --- 83,94 ---- Com() : ! communType( IProf::COMMUN_SHMEM), ! connectMode( 0), hostname( "127.0.0.1"), port( IProf::COMMUN_PORT), ! shmemSize( IProf::COMMUN_SHMEM_SIZE), ! shmemId( "com") // don't change, used in Java IProf, too {}; |