Commit 84df7ea459525ad036b97d21d22f381d4c864d27
1 parent
1310bf28
Exists in
master
and in
1 other branch
Debugging IPC server & client.
Showing
5 changed files
with
12 additions
and
5 deletions
Show diff stats
client/src/session/remote/actions.cc
... | ... | @@ -185,7 +185,7 @@ |
185 | 185 | int32_t rc; |
186 | 186 | |
187 | 187 | Request(*this,"pfkey") |
188 | - .push((uint32_t) value) | |
188 | + .push((int32_t) value) | |
189 | 189 | .call() |
190 | 190 | .pop(rc); |
191 | 191 | |
... | ... | @@ -200,7 +200,7 @@ |
200 | 200 | int32_t rc; |
201 | 201 | |
202 | 202 | Request(*this,"pakey") |
203 | - .push((uint32_t) value) | |
203 | + .push((int32_t) value) | |
204 | 204 | .call() |
205 | 205 | .pop(rc); |
206 | 206 | ... | ... |
client/src/session/remote/linux/session.cc
... | ... | @@ -40,6 +40,7 @@ |
40 | 40 | #include <ipc-client-internals.h> |
41 | 41 | #include <cstring> |
42 | 42 | #include <lib3270/trace.h> |
43 | + #include <algorithm> | |
43 | 44 | |
44 | 45 | using std::string; |
45 | 46 | |
... | ... | @@ -83,6 +84,9 @@ |
83 | 84 | this->name += string(id,(sep - id)); |
84 | 85 | this->name += "."; |
85 | 86 | this->name += (sep+1); |
87 | + | |
88 | + std::transform(this->name.begin(), this->name.end(), this->name.begin(),[](unsigned char c){ return std::tolower(c); }); | |
89 | + | |
86 | 90 | this->path = "/br/com/bb/tn3270/session"; |
87 | 91 | this->interface = "br.com.bb.tn3270.session"; |
88 | 92 | ... | ... |
client/src/testprogram/testprogram.cc
... | ... | @@ -120,7 +120,9 @@ |
120 | 120 | cout << endl << "[" << host.toString((unsigned int) 1, (unsigned int) 3,7) << "]" << endl; |
121 | 121 | cout << endl << "[" << host.toString((int) 15, (int) 10) << "]" << endl; |
122 | 122 | |
123 | - host.disconnect(); | |
123 | + host.pfkey(3); | |
124 | + | |
125 | + // host.disconnect(); | |
124 | 126 | |
125 | 127 | } catch(const std::exception &e) { |
126 | 128 | ... | ... |
server/src/core/linux/gobject.c
... | ... | @@ -113,11 +113,11 @@ void ipc3270_add_terminal_introspection(GString *introspection) { |
113 | 113 | " <arg type='i' name='result' direction='out' />" \ |
114 | 114 | " </method>" |
115 | 115 | " <method name='pfkey'>" \ |
116 | - " <arg type='u' name='keycode' direction='in'/>" \ | |
116 | + " <arg type='i' name='keycode' direction='in'/>" \ | |
117 | 117 | " <arg type='i' name='result' direction='out' />" \ |
118 | 118 | " </method>" |
119 | 119 | " <method name='pakey'>" \ |
120 | - " <arg type='u' name='keycode' direction='in'/>" \ | |
120 | + " <arg type='i' name='keycode' direction='in'/>" \ | |
121 | 121 | " <arg type='i' name='result' direction='out' />" \ |
122 | 122 | " </method>" |
123 | 123 | " <method name='getString'>" \ | ... | ... |
server/src/core/methods/action.c