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,7 +185,7 @@ | ||
| 185 | int32_t rc; | 185 | int32_t rc; |
| 186 | 186 | ||
| 187 | Request(*this,"pfkey") | 187 | Request(*this,"pfkey") |
| 188 | - .push((uint32_t) value) | 188 | + .push((int32_t) value) |
| 189 | .call() | 189 | .call() |
| 190 | .pop(rc); | 190 | .pop(rc); |
| 191 | 191 | ||
| @@ -200,7 +200,7 @@ | @@ -200,7 +200,7 @@ | ||
| 200 | int32_t rc; | 200 | int32_t rc; |
| 201 | 201 | ||
| 202 | Request(*this,"pakey") | 202 | Request(*this,"pakey") |
| 203 | - .push((uint32_t) value) | 203 | + .push((int32_t) value) |
| 204 | .call() | 204 | .call() |
| 205 | .pop(rc); | 205 | .pop(rc); |
| 206 | 206 |
client/src/session/remote/linux/session.cc
| @@ -40,6 +40,7 @@ | @@ -40,6 +40,7 @@ | ||
| 40 | #include <ipc-client-internals.h> | 40 | #include <ipc-client-internals.h> |
| 41 | #include <cstring> | 41 | #include <cstring> |
| 42 | #include <lib3270/trace.h> | 42 | #include <lib3270/trace.h> |
| 43 | + #include <algorithm> | ||
| 43 | 44 | ||
| 44 | using std::string; | 45 | using std::string; |
| 45 | 46 | ||
| @@ -83,6 +84,9 @@ | @@ -83,6 +84,9 @@ | ||
| 83 | this->name += string(id,(sep - id)); | 84 | this->name += string(id,(sep - id)); |
| 84 | this->name += "."; | 85 | this->name += "."; |
| 85 | this->name += (sep+1); | 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 | this->path = "/br/com/bb/tn3270/session"; | 90 | this->path = "/br/com/bb/tn3270/session"; |
| 87 | this->interface = "br.com.bb.tn3270.session"; | 91 | this->interface = "br.com.bb.tn3270.session"; |
| 88 | 92 |
client/src/testprogram/testprogram.cc
| @@ -120,7 +120,9 @@ | @@ -120,7 +120,9 @@ | ||
| 120 | cout << endl << "[" << host.toString((unsigned int) 1, (unsigned int) 3,7) << "]" << endl; | 120 | cout << endl << "[" << host.toString((unsigned int) 1, (unsigned int) 3,7) << "]" << endl; |
| 121 | cout << endl << "[" << host.toString((int) 15, (int) 10) << "]" << endl; | 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 | } catch(const std::exception &e) { | 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,11 +113,11 @@ void ipc3270_add_terminal_introspection(GString *introspection) { | ||
| 113 | " <arg type='i' name='result' direction='out' />" \ | 113 | " <arg type='i' name='result' direction='out' />" \ |
| 114 | " </method>" | 114 | " </method>" |
| 115 | " <method name='pfkey'>" \ | 115 | " <method name='pfkey'>" \ |
| 116 | - " <arg type='u' name='keycode' direction='in'/>" \ | 116 | + " <arg type='i' name='keycode' direction='in'/>" \ |
| 117 | " <arg type='i' name='result' direction='out' />" \ | 117 | " <arg type='i' name='result' direction='out' />" \ |
| 118 | " </method>" | 118 | " </method>" |
| 119 | " <method name='pakey'>" \ | 119 | " <method name='pakey'>" \ |
| 120 | - " <arg type='u' name='keycode' direction='in'/>" \ | 120 | + " <arg type='i' name='keycode' direction='in'/>" \ |
| 121 | " <arg type='i' name='result' direction='out' />" \ | 121 | " <arg type='i' name='result' direction='out' />" \ |
| 122 | " </method>" | 122 | " </method>" |
| 123 | " <method name='getString'>" \ | 123 | " <method name='getString'>" \ |
server/src/core/methods/action.c