133 #ifndef OPENTXS_EXT_OTSOCKET_HPP
134 #define OPENTXS_EXT_OTSOCKET_HPP
153 EXPORT
Defaults(int64_t lLatencySendMs, int32_t nLatencySendNoTries,
154 int64_t lLatencyReceiveMs,
155 int32_t nLatencyReceiveNoTries,
156 int64_t lLatencyDelayAfter,
bool bIsBlocking);
171 Mutex& operator=(
const Mutex&);
172 std::mutex* m_pMutex;
178 EXPORT std::mutex* Get();
212 EXPORT
bool Init(
const Defaults& defaults);
213 EXPORT
bool Init(
const Defaults& defaults,
OTSettings* pSettings);
224 EXPORT
virtual bool RemakeSocket(
const bool bNewContext =
false) = 0;
226 EXPORT
virtual bool Connect() = 0;
227 EXPORT
virtual bool Listen() = 0;
234 const OTString& strConnectPath) = 0;
240 #endif // OPENTXS_EXT_OTSOCKET_HPP
virtual bool HandleReceivingError()=0
int64_t m_lLatencyDelayAfter
OTString m_strConnectPath
const int64_t m_lLatencyReceiveMs
int32_t m_nLatencyReceiveNoTries
int32_t m_nLatencySendNoTries
virtual EXPORT bool Connect()=0
const int64_t m_lLatencySendMs
EXPORT bool HasContext() const
OTString m_strBindingPath
EXPORT const OTString & GetBindingPath() const
const int32_t m_nLatencySendNoTries
virtual bool HandlePollingError()=0
EXPORT std::mutex * GetMutex()
const int64_t m_lLatencyDelayAfter
virtual bool HandleSendingError()=0
EXPORT bool Init(const Defaults &defaults)
int64_t m_lLatencyReceiveMs
virtual EXPORT bool Listen()=0
virtual EXPORT bool Send(const OTASCIIArmor &ascEnvelope)=0
EXPORT bool IsConnected() const
virtual EXPORT bool NewContext()=0
OTASCIIArmor m_ascLastMsgSent
virtual EXPORT bool Receive(OTString &strServerReply)=0
virtual EXPORT bool RemakeSocket(const bool bNewContext=false)=0
EXPORT Defaults(int64_t lLatencySendMs, int32_t nLatencySendNoTries, int64_t lLatencyReceiveMs, int32_t nLatencyReceiveNoTries, int64_t lLatencyDelayAfter, bool bIsBlocking)
EXPORT bool IsInitialized() const
const int32_t m_nLatencyReceiveNoTries
EXPORT bool IsListening() const
EXPORT const OTString & GetConnectPath() const