FARGOS/VISTA Object Management Environment Core
..
|
establishes and maintains a connection with a FARGOS/VISTA Object Management Environment. More...
#include <OMEapi.h>
Public Member Functions | |
OMEconnection (const OMEoid &objId, const OMEstring &destination, const OMEtype &authentication) | |
~OMEconnection () | |
int | establishConnection () |
int | sendMessage (const OMEtype &dest, int *errRet=nullptr) |
int | receiveMessage (OMEtype &result, int *errRet=nullptr) |
int | getPeerObject (OMEtype &obj) |
OMEioDescriptor * | getDescriptor () const |
int | getHandle () const |
Private Member Functions | |
void | freeEncryptionResources () |
int | sendString (const OMEstring &data, int *errRet=nullptr) |
OMEstring * | receiveString (int *errRet=nullptr) |
OMEstring * | encodeData (const OMEtype &messData) |
OMEtype * | decodeData (const OMEstring &data) |
int | negotiateKey () |
Private Attributes | |
OMEioDescriptor * | descriptor |
OMEstring | destination |
OMEstring | secret |
OMEtype | authenticationData |
OMEoid * | thisObject |
OMEtype | remoteOID |
OMEtype | peerOID |
int | encodeVersion |
int | encryptCipherID |
int | encryptKeyID |
int | decryptCipherID |
int | decryptKeyID |
OMEstring | userInfo |
OMEstring | VISTAdomainName |
establishes and maintains a connection with a FARGOS/VISTA Object Management Environment.
All session key negotiation, encoding, compression and encryption is performed by an OMEconnection object. This class is normally never accessed directly; instead, the class OMEapi provides the standard high-level interface.
OMEconnection::~OMEconnection | ( | ) |
References descriptor, freeEncryptionResources(), and thisObject.
Referenced by receiveMessage().
References OMEencodeBuffer::condenseIntoString(), OMEtype::encode(), and encodeVersion.
Referenced by sendMessage().
int OMEconnection::establishConnection | ( | ) |
References descriptor, destination, errno, LOG_CERR, LOG_ENDLINE, negotiateKey(), OMEdebugEvents, OMEdebugFlag, and OMEopenURL().
Referenced by OMEapi::establishConnection().
|
private |
References decryptCipherID, decryptKeyID, encryptCipherID, encryptKeyID, OMEfreeCipher(), OMEfreeDecryptionKey(), and OMEfreeEncryptionKey().
Referenced by negotiateKey(), and ~OMEconnection().
|
inline |
References descriptor.
Referenced by OMEapi::getDescriptor().
|
inline |
References descriptor, and OMEioDescriptor::ioHandle.
Referenced by OMEapi::getHandle().
|
inline |
References peerOID.
Referenced by OMEapi::getPeerObject().
|
private |
References freeEncryptionResources(), LOG_CERR, LOG_ENDLINE, OME_ARRAY, OME_ASSOC, OMEgetSigningFile(), OMEmakePrivateKey(), OMEmakePublicKey(), secret, OMEtype::type, and VISTAdomainName.
Referenced by establishConnection().
int OMEconnection::receiveMessage | ( | OMEtype & | result, |
int * | errRet = nullptr |
||
) |
References decodeData(), decryptCipherID, decryptKeyID, OMEdebugEvents, OMEdebugFlag, OMEdecryptString(), and receiveString().
Referenced by OMEapi::importInvocation().
|
private |
References descriptor, and OMEioDescriptor::selectForRead().
Referenced by receiveMessage().
int OMEconnection::sendMessage | ( | const OMEtype & | dest, |
int * | errRet = nullptr |
||
) |
References encodeData(), encryptCipherID, encryptKeyID, OMEdebugExceptions, OMEdebugFlag, OMEencryptString(), and sendString().
Referenced by OMEapi::invokeMethod().
|
private |
References OMEioVector::data, descriptor, htonl, OMEioVector::length, OMEstring::length(), OMEstring::outputOnStreamAsHex(), and OMEioDescriptor::writeVectorOfBytes().
Referenced by sendMessage().
|
private |
|
private |
Referenced by freeEncryptionResources(), OMEconnection(), and receiveMessage().
|
private |
Referenced by freeEncryptionResources(), OMEconnection(), and receiveMessage().
|
private |
Referenced by establishConnection(), getDescriptor(), getHandle(), OMEconnection(), receiveString(), sendString(), and ~OMEconnection().
|
private |
Referenced by establishConnection().
|
private |
Referenced by encodeData(), and OMEconnection().
|
private |
Referenced by freeEncryptionResources(), OMEconnection(), and sendMessage().
|
private |
Referenced by freeEncryptionResources(), OMEconnection(), and sendMessage().
|
private |
Referenced by getPeerObject().
|
private |
|
private |
Referenced by negotiateKey(), and OMEconnection().
|
private |
Referenced by OMEconnection(), and ~OMEconnection().
|
private |
Referenced by OMEconnection().
|
private |
Referenced by negotiateKey(), and OMEconnection().
![]() | Generated: Tue Jul 28 2020 16:03:27
Support Information |