|
@ -24,7 +24,13 @@ namespace pEp { |
|
|
//Transport
|
|
|
//Transport
|
|
|
bool hasMsg() const; |
|
|
bool hasMsg() const; |
|
|
void sendMsg(const std::string nodename, const std::string& msg) const; |
|
|
void sendMsg(const std::string nodename, const std::string& msg) const; |
|
|
|
|
|
|
|
|
|
|
|
// Non-blocking
|
|
|
|
|
|
// throws underflow_error if inbox empty
|
|
|
std::string pollMsg() const; |
|
|
std::string pollMsg() const; |
|
|
|
|
|
|
|
|
|
|
|
// Blocking
|
|
|
|
|
|
// Returns when a msg has been received
|
|
|
std::string receiveMsg(int poll_interval = 100) const; |
|
|
std::string receiveMsg(int poll_interval = 100) const; |
|
|
|
|
|
|
|
|
//internal logging
|
|
|
//internal logging
|
|
|