亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? server.cc

?? 開源CORBA中間件
?? CC
?? 第 1 頁 / 共 2 頁
字號:
/* * A Bank factory that creates Account objects */#include <fstream.h>#include "account.h"#include <mico/security/security.h>#include <mico/security/securitylevel1.h>#include <mico/security/securitylevel2.h>using namespace std;CORBA::ORB_var orb;CORBA::Object_var securitymanager;SecurityLevel2::SecurityManager_var secman;/* * Implementation of the Account */class Account_impl : virtual public POA_Account{public:  Account_impl ();  void deposit (CORBA::ULong);  void withdraw (CORBA::ULong);  CORBA::Long balance ();private:  CORBA::Long bal;};Account_impl::Account_impl (){  bal = 0;}voidAccount_impl::deposit (CORBA::ULong amount){  bal += amount;}voidAccount_impl::withdraw (CORBA::ULong amount){	  // Get SecurityCurrent  CORBA::Object_var securitycurrent;  SecurityLevel2::Current_var seccur;  securitycurrent = orb->resolve_initial_references ("SecurityCurrent");  assert (!CORBA::is_nil (securitycurrent));  seccur = SecurityLevel2::Current::_narrow(securitycurrent);  assert (!CORBA::is_nil (seccur));		  SecurityLevel2::ReceivedCredentials_var rc = seccur->received_credentials();  Security::CredentialsType cred_type = rc->credentials_type();  if ( cred_type == Security::SecOwnCredentials )    cout << "SecOwnCredentials\n";  if ( cred_type == Security::SecReceivedCredentials )    cout << "SecReceivedCredentials\n";  if ( cred_type ==  Security::SecTargetCredentials )    cout << "SecTargetCredentials\n"; // Get Security Features  cout << "Security Features:\n";  if (rc->get_security_feature(Security::SecDirectionBoth,Security::SecNoDelegation ))    cout << "SecNoDelegation\n";  if (rc->get_security_feature(Security::SecDirectionBoth,Security::SecSimpleDelegation ))    cout << "SecSimpleDelegation\n";  if (rc->get_security_feature(Security::SecDirectionBoth,Security::SecCompositeDelegation ))    cout << "SecCompositeDelegation\n";  if (rc->get_security_feature(Security::SecDirectionBoth,Security::SecNoProtection ))    cout << "SecNoProtection\n";  if (rc->get_security_feature(Security::SecDirectionBoth,Security::SecIntegrity))    cout << "SecIntegrity\n";  if (rc->get_security_feature(Security::SecDirectionBoth,Security::SecConfidentiality))    cout << "SecConfidentiality\n";  if (rc->get_security_feature(Security::SecDirectionBoth,Security::SecIntegrityAndConfidentiality))    cout << "SecIntegrityAndConfidentiality\n";  if (rc->get_security_feature(Security::SecDirectionBoth,Security::SecDetectReplay))    cout << "SecDetectReplay\n";  if (rc->get_security_feature(Security::SecDirectionBoth,Security::SecDetectMisordering))    cout << "SecDetectMisordering\n";  if (rc->get_security_feature(Security::SecDirectionBoth,Security::SecEstablishTrustInTarget))    cout << "SecEstablishTrustInTarget\n";  if (rc->get_security_feature(Security::SecDirectionBoth,Security::SecEstablishTrustInClient))    cout << "SecEstablishTrustInClient\n";  Security::ExtensibleFamily fam;  fam.family_definer = 0;  fam.family = 1;  Security::AttributeType at;  at.attribute_family = fam;  at.attribute_type = Security::AccessId;  Security::AttributeTypeList atl;  atl.length(0);  //  atl[0]=at;   Security::AttributeList_var al =  rc->get_attributes( atl );  cout << "Received  credentials"        << (*al).length() << " attributes\n";  for (CORBA::ULong ctr = 0; ctr < (*al).length(); ctr++) {    cout        << (*al)[ctr].attribute_type.attribute_family.family << " "      << (*al)[ctr].attribute_type.attribute_type << " "      <<  &(*al)[ctr].value[0] << " "      << &(*al)[ctr].defining_authority[0]      << endl;  }cout << "///////////////////////////////////////////////////////////////////////////\n";    SecurityLevel2::CredentialsList* accept_creds = rc -> accepting_credentials();	SecurityLevel2::Credentials_var cred = (*accept_creds)[0];	// get the attributes from the initiating_credentials of tc  al = cred -> get_attributes(atl);// and print them  cout << "Associating credentials "        << (*al).length() << " attributes\n";    for (CORBA::ULong ctr = 0; ctr < (*al).length(); ctr++) {    cout        << "family = "			<< (*al)[ctr].attribute_type.attribute_family.family << " "      << "type = "			<< (*al)[ctr].attribute_type.attribute_type << " "      <<  &(*al)[ctr].value[0] << " "      << &(*al)[ctr].defining_authority[0]      << endl;  }	cout << "///////////////////////////////////////////////////////////////////////////\n";		Security::AssociationOptions opt_used = rc -> association_options_used();	cout << "Association_options_used (received credentials)\n" ;  		if (Security::NoDelegation == (opt_used & Security::NoDelegation))	 cout << "NoDelegaion\n";	if (Security::SimpleDelegation == (opt_used & Security::SimpleDelegation))		 cout << "SimpleDelegation\n";	if (Security::CompositeDelegation == (opt_used & Security::CompositeDelegation))		 cout << "CompositeDelegation\n";	if (Security::NoProtection == (opt_used & Security::NoProtection))		 cout << "NoProtection\n";	if (Security::Integrity == (opt_used & Security::Integrity))		 cout << "Integrity\n";  if (Security::Confidentiality == (opt_used & Security::Confidentiality))		 cout << "Confidentiality\n";	if (Security::DetectReplay == (opt_used & Security::DetectReplay))	 cout << "DetectReplay\n";	if (Security::DetectMisordering == (opt_used & Security::DetectMisordering))	 cout << "DetectMisordering\n";	if (Security::EstablishTrustInTarget == (opt_used & Security::EstablishTrustInTarget))	 cout << "EstablishTrustInTarget\n";	if (Security::EstablishTrustInClient == (opt_used & Security::EstablishTrustInClient))	 cout << "EstablishTrustInClient\n";	cout << "///////////////////////////////////////////////////////////////////////////\n";			bal -= amount;}CORBA::LongAccount_impl::balance (){  return bal;}/* * Implementation of the Bank */class Bank_impl : virtual public POA_Bank{public:  Account_ptr create ();};Account_ptrBank_impl::create (){  /*   * Create a new account (which is never deleted)   */  Account_impl * ai = new Account_impl;  /*   * Obtain a reference using _this. This implicitely activates the   * account servant (the RootPOA, which is the object's _default_POA,   * has the IMPLICIT_ACTIVATION policy)   */  Account_ptr aref = ai->_this ();  assert (!CORBA::is_nil (aref));  /*   * Return the reference   */  return aref;}intmain (int argc, char *argv[]){  /*   * Initialize the ORB   */  cout << "Start Bank server\n";  orb = CORBA::ORB_init (argc, argv, "mico-local-orb");  // Check for security service  // Are the values correct?  CORBA::ServiceType service_type = CORBA::Security;  CORBA::ServiceInformation_var service_information = new CORBA::ServiceInformation;    if (orb->get_service_information(service_type, service_information)) {    cout << "Security Service exists\n";    CORBA::ULong opt_len = service_information->service_options.length();    cout << opt_len << " Service Options:= ";    for ( CORBA::ULong i = 0; i < opt_len; i++) {      cout << service_information->service_options[i] << " ";    }    cout << endl;    CORBA::ULong det_len = service_information->service_details.length();    cout << det_len << " Service Details:\n";    for ( CORBA::ULong i = 0; i < det_len; i++) {      cout << "Type= " << 	service_information->service_details[i].service_detail_type << " ";      for ( CORBA::ULong j = 0; j < service_information->service_details[i].service_detail.length(); j++) {	  cout << (unsigned char)service_information->service_details[i].service_detail[j];      }      cout << endl;    }  } else {    cout << "No Security Service available\n";    assert(0);  }    /*   * Obtain a reference to the RootPOA and its Manager   */  PortableServer::POA_var poa;  CORBA::Object_var poaobj = orb->resolve_initial_references ("RootPOA");  poa = PortableServer::POA::_narrow (poaobj);  PortableServer::POAManager_var mgr = poa->the_POAManager();  // Get SecurityManager

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91美女蜜桃在线| 日韩写真欧美这视频| 欧美精品成人一区二区三区四区| 日韩一区二区三| 一区二区三区免费观看| 韩国一区二区在线观看| 欧美伦理视频网站| 亚洲人妖av一区二区| 激情文学综合网| 欧美福利视频一区| 亚洲精品国产一区二区三区四区在线| 久久电影国产免费久久电影 | 欧美性色黄大片| 中文在线资源观看网站视频免费不卡| 丝袜美腿亚洲色图| 欧美伊人精品成人久久综合97| 日本一区二区三区dvd视频在线 | 91精品国产麻豆国产自产在线 | 国产精品美女久久久久av爽李琼| 日韩成人dvd| 色婷婷av一区二区三区gif| 国产亚洲美州欧州综合国| 日本三级亚洲精品| 欧美伦理视频网站| 午夜精品在线视频一区| 精品视频资源站| 一区二区三区中文字幕电影 | 欧美高清一级片在线| 一区二区三区成人在线视频| 91亚洲精品久久久蜜桃网站| 国产精品久久看| 福利一区在线观看| 国产精品五月天| 成人午夜伦理影院| 国产精品美女视频| 成人激情视频网站| 亚洲欧洲精品成人久久奇米网| 大胆欧美人体老妇| 中文字幕电影一区| 99久久久无码国产精品| 亚洲情趣在线观看| 欧美在线色视频| 日韩在线a电影| 日韩欧美的一区| 国产一区二区三区四区五区美女 | 国产精品久久久久影院| 一本大道综合伊人精品热热| 亚洲午夜视频在线| 91精品久久久久久蜜臀| 韩国成人在线视频| 中文字幕精品一区二区三区精品| 不卡一区二区中文字幕| 亚洲一级二级在线| 91精品婷婷国产综合久久性色 | 国产欧美日韩麻豆91| 99国产精品99久久久久久| 亚洲精选免费视频| 欧美一区二区三区思思人| 国产毛片精品视频| 一色桃子久久精品亚洲| 欧日韩精品视频| 激情综合一区二区三区| 亚洲天堂久久久久久久| 91精品国产综合久久小美女| 国产精品123| 亚洲人成精品久久久久久 | 亚洲成人一区二区| 欧美精品一区二区三区一线天视频 | 国产成人小视频| 亚洲精品乱码久久久久久黑人| 欧美电影免费观看高清完整版在线| 成人黄色国产精品网站大全在线免费观看| 亚洲图片欧美视频| 久久精品视频一区| 精品视频在线免费观看| 成人app软件下载大全免费| 丝袜美腿亚洲综合| 亚洲欧美日韩国产另类专区| 日韩精品一区二区三区视频在线观看 | 秋霞电影一区二区| 亚洲欧美自拍偷拍色图| 欧美成人官网二区| 欧美在线你懂得| 北条麻妃一区二区三区| 日本va欧美va瓶| 亚洲自拍欧美精品| 国产精品久久毛片a| 日韩欧美亚洲国产精品字幕久久久| www.日韩在线| 国产精品一区二区x88av| 婷婷一区二区三区| 一区二区三区成人在线视频 | 精品国产髙清在线看国产毛片| 色哟哟国产精品| 懂色av噜噜一区二区三区av| 裸体在线国模精品偷拍| 一级中文字幕一区二区| 国产精品久久综合| 亚洲国产精品精华液2区45| 欧美va亚洲va| 日韩欧美在线综合网| 欧美日韩视频在线一区二区| 色噜噜狠狠成人中文综合| 懂色av一区二区三区免费观看| 国产一区二区三区综合| 韩国三级在线一区| 蜜桃精品视频在线| 久久精品理论片| 裸体歌舞表演一区二区| 蜜臀久久久99精品久久久久久| 午夜精品影院在线观看| 香港成人在线视频| 亚洲 欧美综合在线网络| 亚洲第一搞黄网站| 五月天久久比比资源色| 亚洲成人免费视| 香蕉成人啪国产精品视频综合网 | 欧美精品久久99| 91精品国产综合久久久久久| 欧美三电影在线| 欧美久久高跟鞋激| 91精品视频网| 久久综合资源网| 国产日韩欧美电影| 中文字幕在线一区| 日韩理论片一区二区| 亚洲一区二区三区中文字幕| 五月天国产精品| 精品在线播放免费| 国产91综合网| 91免费版pro下载短视频| 色94色欧美sute亚洲线路二| 欧美体内she精高潮| 91精品国产麻豆国产自产在线| 精品国产一区二区三区久久久蜜月| 国产亚洲婷婷免费| 《视频一区视频二区| 亚洲成av人片一区二区| 久久国产精品第一页| 成人av在线一区二区三区| 色偷偷久久一区二区三区| 在线播放/欧美激情| 国产亚洲欧美一级| 亚洲综合成人在线视频| 激情六月婷婷久久| 91网址在线看| 欧美理论在线播放| 欧美激情自拍偷拍| 亚洲激情图片qvod| 久久99久久99小草精品免视看| www.欧美亚洲| 欧美一级黄色录像| 亚洲天堂2014| 激情文学综合插| 91国内精品野花午夜精品| 精品国产网站在线观看| 亚洲精品国产视频| 国产一区二区三区高清播放| 在线观看视频一区| 久久久午夜精品理论片中文字幕| 亚洲日本在线看| 国产精品自拍av| 欧美日本在线视频| 中文字幕在线播放不卡一区| 毛片基地黄久久久久久天堂| 97成人超碰视| 国产亚洲欧美一区在线观看| 午夜视频在线观看一区二区| 成人免费高清在线| 欧美xxxxxxxxx| 午夜电影一区二区| 色偷偷88欧美精品久久久| 国产亚洲欧洲997久久综合| 日韩不卡一二三区| 色成人在线视频| 中文av一区特黄| 国产一区二区精品久久| 91精品福利在线一区二区三区| 亚洲精品视频在线看| 成人免费高清视频| 国产欧美一区二区精品久导航| 久久国产婷婷国产香蕉| 欧美日韩aaa| 亚洲aⅴ怡春院| 欧美亚洲动漫另类| 亚洲自拍与偷拍| 欧美色中文字幕| 亚洲老司机在线| 色狠狠综合天天综合综合| 国产精品福利影院| 成人黄动漫网站免费app| 欧美韩国一区二区| 国产精品一区不卡| 欧美激情中文字幕| 丁香激情综合五月| 国产精品久久久久久久岛一牛影视| 国产伦精一区二区三区| 久久久久久久久久美女| 国产精品影视在线| 久久久精品免费免费|