Commit acf8efe72aecbc523827b1e3d008f3fe2c1d2ea7

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

Testing IPC module.

client/src/core/abstract.cc
... ... @@ -151,7 +151,7 @@
151 151  
152 152 /// @brief Converte string recebida do host para o charset atual.
153 153 std::string Abstract::Session::convertFromHost(const std::string &str) const {
154   - debug(__FUNCTION__,"(",str.c_str(),")");
  154 +// debug(__FUNCTION__,"(",str.c_str(),")");
155 155 return convertCharset(const_cast<Abstract::Session *>(this)->converter.local,str.c_str(),str.size());
156 156 }
157 157  
... ...
client/src/testprogram/testprogram.cc
... ... @@ -44,6 +44,8 @@
44 44  
45 45 using namespace std;
46 46  
  47 + #pragma GCC diagnostic ignored "-Wunused-function"
  48 +
47 49 /*---[ Implement ]----------------------------------------------------------------------------------*/
48 50  
49 51 /*
... ... @@ -119,11 +121,10 @@
119 121  
120 122 cout
121 123 << "Version: " << host["version"]
122   -// << "\tRevision: " << host["Revision"]
123   -// << "\tConnected: " << host["Connected"]
  124 + << "\tRevision: " << host["Revision"]
  125 + << "\tConnected: " << host["Connected"]
124 126 << std::endl;
125 127  
126   - /*
127 128 host.connect(nullptr);
128 129  
129 130 cout
... ... @@ -145,16 +146,20 @@
145 146 // host.input("test@0another line");
146 147  
147 148 host.push(TN3270::ENTER);
  149 + host.wait(10);
  150 +
  151 + cout << host << endl;
148 152  
149 153 cout << endl << "[" << host.toString((unsigned int) 1, (unsigned int) 3,7) << "]" << endl;
150 154 cout << endl << "[" << host.toString((int) 15, (int) 10) << "]" << endl;
151 155  
152 156 host.pfkey(3);
  157 + host.wait(10);
153 158  
  159 + cout << host << endl;
154 160 host.wait(10);
155 161  
156 162 host.disconnect();
157   - */
158 163  
159 164 } catch(const std::exception &e) {
160 165  
... ... @@ -166,7 +171,6 @@
166 171  
167 172 int main(int argc, char **argv) {
168 173  
169   - /*
170 174 const char * session = ":a";
171 175  
172 176 #pragma GCC diagnostic push
... ... @@ -190,11 +194,11 @@
190 194 }
191 195  
192 196 }
193   - */
194 197  
195   - // cout << "Session: " << session << endl;
  198 + cout << "Session: " << session << endl;
  199 +
  200 + testHost(session);
196 201  
197   - //testHost(session);
198 202 //testAttributes(session);
199 203  
200 204 /*
... ... @@ -209,6 +213,7 @@
209 213 }
210 214 */
211 215  
  216 + /*
212 217 {
213 218 TN3270::Host host{":a",nullptr,10};
214 219  
... ... @@ -218,7 +223,7 @@
218 223  
219 224 delete action;
220 225 }
221   -
  226 + */
222 227  
223 228 /*
224 229 for(auto attribute : TN3270::getAttributes()) {
... ...