📄 vncsk.cpp
字号:
}}// Local call call-back function.static void_0RL_lcfn_22cbff1b827fd898_50000000(omniCallDescriptor* cd, omniServant* svnt){ _0RL_cd_22cbff1b827fd898_40000000* tcd = (_0RL_cd_22cbff1b827fd898_40000000*) cd; vnc::_impl_controller* impl = (vnc::_impl_controller*) svnt->_ptrToInterface(vnc::controller::_PD_repoId); tcd->pd_result = impl->initiateConnection(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3, tcd->arg_4);}CORBA::UShort vnc::_objref_controller::initiateConnection(const char* clientAddress, CORBA::UShort port, CORBA::UShort capability, CORBA::Boolean enableInputs, CORBA::Boolean isTeleport){ _0RL_cd_22cbff1b827fd898_40000000 _call_desc(_0RL_lcfn_22cbff1b827fd898_50000000, "initiateConnection", 19, 0, clientAddress, port, capability, enableInputs, isTeleport); _invoke(_call_desc); return _call_desc.result();}// Proxy call descriptor class. Mangled signature:// void_i_cunsigned_pshortclass _0RL_cd_22cbff1b827fd898_60000000 : public omniCallDescriptor{public: inline _0RL_cd_22cbff1b827fd898_60000000(LocalCallFn lcfn, const char* op, size_t oplen, _CORBA_Boolean oneway, CORBA::UShort a_0): omniCallDescriptor(lcfn, op, oplen, oneway), arg_0(a_0) {} virtual CORBA::ULong alignedSize(CORBA::ULong size_in); virtual void marshalArguments(GIOP_C&); CORBA::UShort arg_0; };CORBA::ULong _0RL_cd_22cbff1b827fd898_60000000::alignedSize(CORBA::ULong msgsize){ msgsize = omni::align_to(msgsize, omni::ALIGN_2) + 2; return msgsize;}void _0RL_cd_22cbff1b827fd898_60000000::marshalArguments(GIOP_C& giop_client){ arg_0 >>= giop_client; }// Local call call-back function.static void_0RL_lcfn_22cbff1b827fd898_70000000(omniCallDescriptor* cd, omniServant* svnt){ _0RL_cd_22cbff1b827fd898_60000000* tcd = (_0RL_cd_22cbff1b827fd898_60000000*) cd; vnc::_impl_controller* impl = (vnc::_impl_controller*) svnt->_ptrToInterface(vnc::controller::_PD_repoId); impl->closeConnection(tcd->arg_0);}void vnc::_objref_controller::closeConnection(CORBA::UShort connectionId){ _0RL_cd_22cbff1b827fd898_60000000 _call_desc(_0RL_lcfn_22cbff1b827fd898_70000000, "closeConnection", 16, 1/*oneway*/, connectionId); _invoke(_call_desc); }// Proxy call descriptor class. Mangled signature:// _cunsigned_plongclass _0RL_cd_22cbff1b827fd898_80000000 : public omniCallDescriptor{public: inline _0RL_cd_22cbff1b827fd898_80000000(LocalCallFn lcfn, const char* op, size_t oplen, _CORBA_Boolean oneway): omniCallDescriptor(lcfn, op, oplen, oneway) {} virtual void unmarshalReturnedValues(GIOP_C&); inline CORBA::ULong result() { return pd_result; } CORBA::ULong pd_result;};void _0RL_cd_22cbff1b827fd898_80000000::unmarshalReturnedValues(GIOP_C& giop_client){ pd_result <<= giop_client; }// Local call call-back function.static void_0RL_lcfn_22cbff1b827fd898_90000000(omniCallDescriptor* cd, omniServant* svnt){ _0RL_cd_22cbff1b827fd898_80000000* tcd = (_0RL_cd_22cbff1b827fd898_80000000*) cd; vnc::_impl_controller* impl = (vnc::_impl_controller*) svnt->_ptrToInterface(vnc::controller::_PD_repoId); tcd->pd_result = impl->getTimeSinceLastConnection();}CORBA::ULong vnc::_objref_controller::getTimeSinceLastConnection(){ _0RL_cd_22cbff1b827fd898_80000000 _call_desc(_0RL_lcfn_22cbff1b827fd898_90000000, "getTimeSinceLastConnection", 27, 0); _invoke(_call_desc); return _call_desc.result();}// Local call call-back function.static void_0RL_lcfn_22cbff1b827fd898_a0000000(omniCallDescriptor* cd, omniServant* svnt){ vnc::_impl_controller* impl = (vnc::_impl_controller*) svnt->_ptrToInterface(vnc::controller::_PD_repoId); impl->shutdown();}void vnc::_objref_controller::shutdown(){ omniStdCallDesc::void_call _call_desc(_0RL_lcfn_22cbff1b827fd898_a0000000, "shutdown", 9, 1/*oneway*/); _invoke(_call_desc); }// Local call call-back function.static void_0RL_lcfn_22cbff1b827fd898_b0000000(omniCallDescriptor* cd, omniServant* svnt){ _0RL_cd_22cbff1b827fd898_60000000* tcd = (_0RL_cd_22cbff1b827fd898_60000000*) cd; vnc::_impl_controller* impl = (vnc::_impl_controller*) svnt->_ptrToInterface(vnc::controller::_PD_repoId); impl->enableKeyboardDevice(tcd->arg_0);}void vnc::_objref_controller::enableKeyboardDevice(CORBA::UShort periperalId){ _0RL_cd_22cbff1b827fd898_60000000 _call_desc(_0RL_lcfn_22cbff1b827fd898_b0000000, "enableKeyboardDevice", 21, 1/*oneway*/, periperalId); _invoke(_call_desc); }// Local call call-back function.static void_0RL_lcfn_22cbff1b827fd898_c0000000(omniCallDescriptor* cd, omniServant* svnt){ _0RL_cd_22cbff1b827fd898_60000000* tcd = (_0RL_cd_22cbff1b827fd898_60000000*) cd; vnc::_impl_controller* impl = (vnc::_impl_controller*) svnt->_ptrToInterface(vnc::controller::_PD_repoId); impl->disableKeyboardDevice(tcd->arg_0);}void vnc::_objref_controller::disableKeyboardDevice(CORBA::UShort peripheralId){ _0RL_cd_22cbff1b827fd898_60000000 _call_desc(_0RL_lcfn_22cbff1b827fd898_c0000000, "disableKeyboardDevice", 22, 1/*oneway*/, peripheralId); _invoke(_call_desc); }// Local call call-back function.static void_0RL_lcfn_22cbff1b827fd898_d0000000(omniCallDescriptor* cd, omniServant* svnt){ _0RL_cd_22cbff1b827fd898_60000000* tcd = (_0RL_cd_22cbff1b827fd898_60000000*) cd; vnc::_impl_controller* impl = (vnc::_impl_controller*) svnt->_ptrToInterface(vnc::controller::_PD_repoId); impl->enablePointerDevice(tcd->arg_0);}void vnc::_objref_controller::enablePointerDevice(CORBA::UShort periperalId){ _0RL_cd_22cbff1b827fd898_60000000 _call_desc(_0RL_lcfn_22cbff1b827fd898_d0000000, "enablePointerDevice", 20, 1/*oneway*/, periperalId); _invoke(_call_desc); }// Local call call-back function.static void_0RL_lcfn_22cbff1b827fd898_e0000000(omniCallDescriptor* cd, omniServant* svnt){ _0RL_cd_22cbff1b827fd898_60000000* tcd = (_0RL_cd_22cbff1b827fd898_60000000*) cd; vnc::_impl_controller* impl = (vnc::_impl_controller*) svnt->_ptrToInterface(vnc::controller::_PD_repoId); impl->disablePointerDevice(tcd->arg_0);}void vnc::_objref_controller::disablePointerDevice(CORBA::UShort peripheralId){ _0RL_cd_22cbff1b827fd898_60000000 _call_desc(_0RL_lcfn_22cbff1b827fd898_e0000000, "disablePointerDevice", 21, 1/*oneway*/, peripheralId); _invoke(_call_desc); }// Proxy call descriptor class. Mangled signature:// _cvnc_mclientInfoListclass _0RL_cd_22cbff1b827fd898_f0000000 : public omniCallDescriptor{public: inline _0RL_cd_22cbff1b827fd898_f0000000(LocalCallFn lcfn, const char* op, size_t oplen, _CORBA_Boolean oneway): omniCallDescriptor(lcfn, op, oplen, oneway) {} virtual void unmarshalReturnedValues(GIOP_C&); inline vnc::clientInfoList* result() { return pd_result; } vnc::clientInfoList* pd_result; };void _0RL_cd_22cbff1b827fd898_f0000000::unmarshalReturnedValues(GIOP_C& giop_client){ pd_result = new vnc::clientInfoList; *pd_result <<= giop_client; }// Proxy call descriptor class. Mangled signature:// void_i_cvnc_mclientInfoListclass _0RL_cd_22cbff1b827fd898_01000000 : public omniCallDescriptor{public: inline _0RL_cd_22cbff1b827fd898_01000000(LocalCallFn lcfn, const char* op, size_t oplen, _CORBA_Boolean oneway, const vnc::clientInfoList& a_0): omniCallDescriptor(lcfn, op, oplen, oneway), arg_0(a_0) {} virtual CORBA::ULong alignedSize(CORBA::ULong); virtual void marshalArguments(GIOP_C&); const vnc::clientInfoList& arg_0; };CORBA::ULong _0RL_cd_22cbff1b827fd898_01000000::alignedSize(CORBA::ULong msgsize){ msgsize = arg_0._NP_alignedSize(msgsize); return msgsize;}void _0RL_cd_22cbff1b827fd898_01000000::marshalArguments(GIOP_C& giop_client){ arg_0 >>= giop_client; }// Local call call-back function.static void_0RL_lcfn_22cbff1b827fd898_11000000(omniCallDescriptor* cd, omniServant* svnt){ _0RL_cd_22cbff1b827fd898_f0000000* tcd = (_0RL_cd_22cbff1b827fd898_f0000000*) cd; vnc::_impl_controller* impl = (vnc::_impl_controller*) svnt->_ptrToInterface(vnc::controller::_PD_repoId); tcd->pd_result = impl->clientList();}vnc::clientInfoList* vnc::_objref_controller::clientList(){ _0RL_cd_22cbff1b827fd898_f0000000 _call_desc(_0RL_lcfn_22cbff1b827fd898_11000000, "_get_clientList", 16, 0); _invoke(_call_desc); return _call_desc.result();}vnc::_pof_controller::~_pof_controller() {}omniObjRef*vnc::_pof_controller::newObjRef(const char* mdri, IOP::TaggedProfileList* p, omniIdentity* id, omniLocalIdentity* lid){ return new vnc::_objref_controller(mdri, p, id, lid);}CORBA::Booleanvnc::_pof_controller::is_a(const char* id) const{ if( !strcmp(id, vnc::controller::_PD_repoId) ) return 1; return 0;}const vnc::_pof_controller _the_pof_vnc_mcontroller;vnc::_impl_controller::~_impl_controller() {}CORBA::Booleanvnc::_impl_controller::_dispatch(GIOP_S& giop_s){ if( !strcmp(giop_s.operation(), "_get_clientList") ) { giop_s.RequestReceived(); clientInfoList_var result = this->clientList(); if( giop_s.response_expected() ) { size_t msgsize = (size_t) GIOP_S::ReplyHeaderSize(); msgsize = (result.operator->())->_NP_alignedSize(msgsize); giop_s.InitialiseReply(GIOP::NO_EXCEPTION, (CORBA::ULong) msgsize); *(result.operator->()) >>= giop_s; } giop_s.ReplyCompleted(); return 1; } if( !strcmp(giop_s.operation(), "getServerAddress") ) { CORBA::String_var arg_address; CORBA::UShort arg_port; giop_s.RequestReceived(); this->getServerAddress(arg_address.out(), arg_port); if( giop_s.response_expected() ) { size_t msgsize = (size_t) GIOP_S::ReplyHeaderSize(); msgsize = omni::align_to(msgsize, omni::ALIGN_4) + 4; msgsize += ((const char*) arg_address) ? strlen((const char*) arg_address) + 1 : 1; msgsize = omni::align_to(msgsize, omni::ALIGN_2) + 2; giop_s.InitialiseReply(GIOP::NO_EXCEPTION, (CORBA::ULong) msgsize); { CORBA::ULong _len = (((const char*) arg_address)? strlen((const char*) arg_address) + 1 : 1); _len >>= giop_s; if (_len > 1) giop_s.put_char_array((const CORBA::Char *)((const char*)arg_address),_len); else { if ((const char*) arg_address == 0 && omniORB::traceLevel > 1) _CORBA_null_string_ptr(0); CORBA::Char('\0') >>= giop_s; } } arg_port >>= giop_s; } giop_s.ReplyCompleted(); return 1; } if( !strcmp(giop_s.operation(), "getDesktopSize") ) { CORBA::UShort arg_width; CORBA::UShort arg_height; CORBA::UShort arg_depth; giop_s.RequestReceived(); this->getDesktopSize(arg_width, arg_height, arg_depth); if( giop_s.response_expected() ) { size_t msgsize = (size_t) GIOP_S::ReplyHeaderSize(); msgsize = omni::align_to(msgsize, omni::ALIGN_2) + 2; msgsize = omni::align_to(msgsize, omni::ALIGN_2) + 2; msgsize = omni::align_to(msgsize, omni::ALIGN_2) + 2; giop_s.InitialiseReply(GIOP::NO_EXCEPTION, (CORBA::ULong) msgsize); arg_width >>= giop_s; arg_height >>= giop_s; arg_depth >>= giop_s; } giop_s.ReplyCompleted(); return 1; } if( !strcmp(giop_s.operation(), "initiateConnection") ) { static const char* const _user_exns[] = { "IDL:vnc/connectionFailed:1.0" }; giop_s.set_user_exceptions(_user_exns, 1); CORBA::String_var arg_clientAddress; { CORBA::String_member _0RL_str_tmp; _0RL_str_tmp <<= giop_s; arg_clientAddress = _0RL_str_tmp._ptr; _0RL_str_tmp._ptr = 0; } CORBA::UShort arg_port; arg_port <<= giop_s; CORBA::UShort arg_capability; arg_capability <<= giop_s; CORBA::Boolean arg_enableInputs; arg_enableInputs <<= giop_s; CORBA::Boolean arg_isTeleport; arg_isTeleport <<= giop_s; giop_s.RequestReceived(); CORBA::UShort result; #ifndef HAS_Cplusplus_catch_exception_by_base try {#endif result = this->initiateConnection(arg_clientAddress.in(), arg_port, arg_capability, arg_enableInputs, arg_isTeleport);#ifndef HAS_Cplusplus_catch_exception_by_base } catch(vnc::connectionFailed& ex) { throw omniORB::StubUserException(ex._NP_duplicate()); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -