Commit 36529dfd0682ef6797ae45ddb5312b9292ce317c

Authored by Perry Werneck
1 parent 4e0e7d25
Exists in master and in 1 other branch develop

Adding disconnect method.

client/src/core/host.cc
... ... @@ -65,6 +65,10 @@
65 65 }
66 66 }
67 67  
  68 + void Host::disconnect() {
  69 + this->session->disconnect();
  70 + }
  71 +
68 72  
69 73 /// @brief Writes characters to the associated file from the put area
70 74 int Host::sync() {
... ...
common/src/include/lib3270/ipc.h
... ... @@ -305,6 +305,7 @@
305 305 }
306 306  
307 307 void connect(const char *url, bool sync = true);
  308 + void disconnect();
308 309  
309 310 inline ProgramMessage getProgramMessage() const {
310 311 return session->getProgramMessage();
... ...