Commit 45043c1f467c540546630f873f354f1bb6e1077b

Authored by Perry Werneck
1 parent 36529dfd
Exists in master and in 1 other branch develop

Adding WaitForReady method.

client/src/core/host.cc
@@ -69,6 +69,9 @@ @@ -69,6 +69,9 @@
69 this->session->disconnect(); 69 this->session->disconnect();
70 } 70 }
71 71
  72 + void Host::waitForReady(time_t timeout) {
  73 + this->session->waitForReady(timeout);
  74 + }
72 75
73 /// @brief Writes characters to the associated file from the put area 76 /// @brief Writes characters to the associated file from the put area
74 int Host::sync() { 77 int Host::sync() {
common/src/include/lib3270/ipc.h
@@ -307,6 +307,8 @@ @@ -307,6 +307,8 @@
307 void connect(const char *url, bool sync = true); 307 void connect(const char *url, bool sync = true);
308 void disconnect(); 308 void disconnect();
309 309
  310 + void waitForReady(time_t timeout = DEFAULT_TIMEOUT);
  311 +
310 inline ProgramMessage getProgramMessage() const { 312 inline ProgramMessage getProgramMessage() const {
311 return session->getProgramMessage(); 313 return session->getProgramMessage();
312 } 314 }