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