Changeset 2173 for trunk/gsdl/src/recpt


Ignore:
Timestamp:
2001-03-14T04:15:23+13:00 (23 years ago)
Author:
cs025
Message:

Improvements to configure scripts in their support of various MICO
environment considerations, particularly when MICO is on the system
paths.

Fixed CORBA version of ping to correspond with parameters etc. of the
native form.

Finally, improved PING action to be more than a simple call to
the HASCOLLECTION action in the null protocol.

Location:
trunk/gsdl/src/recpt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/Makefile.in

    r2171 r2173  
    6565endif
    6666MICO_DIR = @MICO_DIR@
     67MICO_VER = @MICO_VER@
    6768ifeq ($(MICO_DIR), yes)
    6869MICO_INC =
    6970MICO_LIB =
     71MICO_PATH =
    7072else
    7173ifeq ($(MICO_DIR), default)
    7274MICO_DIR = ../../packages/mico/include
     75MICO_PATH = ../../bin/linux/
    7376endif
    7477MICO_INC = -I$(MICO_DIR)
    7578MICO_LIB = -L$(MICO_DIR)
     79MICO_PATH =
    7680endif
    7781MINCLUDES = -I. -I../../lib -I../colservr $(MICO_INC)
     
    8993CPPLINK = $(CPP) $(LDFLAGS) -o $@
    9094
    91 MCOMPILE = ../../bin/linux/mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
    92 MLINK = ../../bin/linux/mico-ld -static $(LDFLAGS) $(MICO_LIB) -o  $@
    93 MLIBS = $(LIBS) -L../../lib/ -lmico2.3.5 -lmicoaux2.3.5         
     95MCOMPILE = $(MICO_PATH)mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
     96MLINK = $(MICO_PATH)mico-ld -static $(LDFLAGS) $(MICO_LIB) -o  $@
     97MLIBS = $(LIBS) -L../../lib/ -lmico$(MICO_VER) -lmicoaux$(MICO_VER)
    9498
    9599.SUFFIXES:
  • trunk/gsdl/src/recpt/corbaproto.mpp

    r2122 r2173  
    389389
    390390  // execute the corba transaction
    391   lclient->configure(corbaKey, corbaCfgline, error); 
    392 
    393  
     391  lclient->configure(corbaKey, corbaCfgline, error);   
    394392
    395393  if (key=="gsdlhome")
     
    541539void corbaproto::ping (const text_t &collection, bool &wassuccess,
    542540              comerror_t &err, ostream &/*logout*/) {
    543   //  cout << "Corbaproto::Ping" << endl;
     541  // cout << "Corbaproto::Ping" << endl;
    544542
    545543  corbatext_t corbaCollect;
    546544  corbaComError corbaError;
    547   bool success;
     545  CORBA::Boolean success;
    548546
    549547  // get the corba client reference
     
    555553
    556554  // execute the corba transaction
    557   success = lclient->ping(corbaCollect, corbaError);
     555  lclient->ping(corbaCollect, success, corbaError);
    558556 
    559557  // convert the response back to normal form
  • trunk/gsdl/src/recpt/nullproto.cpp

    r2113 r2173  
    105105
    106106void nullproto::ping (const text_t &collection, bool &wassuccess,
    107               comerror_t &err, ostream &/*logout*/) {
    108   wassuccess = (cset->getCollectServer(collection) != NULL);
    109   err = noError;
     107              comerror_t &err, ostream &logout) {
     108  collectserver *cserver = cset->getCollectServer(collection);
     109  if (cserver != NULL) cserver->ping(wassuccess, err, logout);
     110  else err = protocolError;
    110111}
    111112
Note: See TracChangeset for help on using the changeset viewer.