⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 giopmonitor.cc

📁 编译工具
💻 CC
字号:
// -*- Mode: C++; -*-//                            Package   : omniORB// giopMonitor.cc             Created on: 21 Dec 2000//                            Author    : Sai Lai Lo (sll)////    Copyright (C) 2000 AT&T Laboratories Cambridge////    This file is part of the omniORB library////    The omniORB library is free software; you can redistribute it and/or//    modify it under the terms of the GNU Library General Public//    License as published by the Free Software Foundation; either//    version 2 of the License, or (at your option) any later version.////    This library is distributed in the hope that it will be useful,//    but WITHOUT ANY WARRANTY; without even the implied warranty of//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU//    Library General Public License for more details.////    You should have received a copy of the GNU Library General Public//    License along with this library; if not, write to the Free//    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  //    02111-1307, USA////// Description://	*** PROPRIETORY INTERFACE ***// /*  $Log: giopMonitor.cc,v $  Revision 1.1.2.4  2005/11/17 11:35:52  dgrisby  In thread pool mode, bidir workers become wedged waiting for incoming  calls, so they must be closed in giopServer::deactivate.  Revision 1.1.2.3  2002/08/21 06:23:15  dgrisby  Properly clean up bidir connections and ropes. Other small tweaks.  Revision 1.1.2.2  2002/03/18 12:38:26  dpg1  Lower trace(0) to trace(1), propagate fatalException.  Revision 1.1.2.1  2001/07/31 16:36:01  sll  Added GIOP BiDir support.*/#include <omniORB4/CORBA.h>#include <omniORB4/giopEndpoint.h>#include <invoker.h>#include <giopServer.h>#include <giopMonitor.h>OMNI_NAMESPACE_BEGIN(omni)voidgiopMonitor::notifyReadable(void* this_,giopConnection* conn) {  giopMonitor* m = (giopMonitor*)this_;  m->pd_server->notifyRzReadable(conn);}voidgiopMonitor::execute(){  omniORB::logs(25, "giopMonitor task execute.");    CORBA::Boolean exit_on_error = 0;  try {    pd_collection->Monitor(notifyReadable,this);  }  catch(...) {    // Catch all unexpected error conditions. Reach here means that we    // should not continue!    if( omniORB::trace(1) ) {      omniORB::logger l;      l << "Unexpected exception caught by giopMonitor\n";    }    exit_on_error = 1;  };  pd_server->notifyMrDone(this,exit_on_error);  omniORB::logs(25, "giopMonitor task finish.");}OMNI_NAMESPACE_END(omni)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -