Open-Transactions  0.93.0-ge03d287
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
opentxs::TransportCallback Class Reference

#include <TransportCallback.hpp>

Inheritance diagram for opentxs::TransportCallback:
Collaboration diagram for opentxs::TransportCallback:

Public Member Functions

EXPORT TransportCallback (OT_API &api)
 
EXPORT ~TransportCallback ()
 
EXPORT bool operator() (OTServerContract &contract, OTEnvelope &envelope)
 

Detailed Description

Definition at line 145 of file TransportCallback.hpp.

Constructor & Destructor Documentation

opentxs::TransportCallback::TransportCallback ( OT_API api)

Definition at line 141 of file TransportCallback.cpp.

142  : api_(api)
143 {
144 }
opentxs::TransportCallback::~TransportCallback ( )

Definition at line 146 of file TransportCallback.cpp.

147 {
148 }

Member Function Documentation

bool opentxs::TransportCallback::operator() ( OTServerContract contract,
OTEnvelope envelope 
)

Definition at line 150 of file TransportCallback.cpp.

152 {
153  if (api_.IsInitialized())
154  return api_.TransportFunction(contract, envelope);
155  else
156  return false;
157 }
EXPORT bool IsInitialized() const
EXPORT bool TransportFunction(const OTServerContract &theServerContract, const OTEnvelope &theEnvelope) const

The documentation for this class was generated from the following files: