From 84df7ea459525ad036b97d21d22f381d4c864d27 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 21 Aug 2019 14:57:02 -0300 Subject: [PATCH] Debugging IPC server & client. --- client/src/session/remote/actions.cc | 4 ++-- client/src/session/remote/linux/session.cc | 4 ++++ client/src/testprogram/testprogram.cc | 4 +++- server/src/core/linux/gobject.c | 4 ++-- server/src/core/methods/action.c | 1 + 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/client/src/session/remote/actions.cc b/client/src/session/remote/actions.cc index b0f8032..812a3df 100644 --- a/client/src/session/remote/actions.cc +++ b/client/src/session/remote/actions.cc @@ -185,7 +185,7 @@ int32_t rc; Request(*this,"pfkey") - .push((uint32_t) value) + .push((int32_t) value) .call() .pop(rc); @@ -200,7 +200,7 @@ int32_t rc; Request(*this,"pakey") - .push((uint32_t) value) + .push((int32_t) value) .call() .pop(rc); diff --git a/client/src/session/remote/linux/session.cc b/client/src/session/remote/linux/session.cc index d684664..07e73dd 100644 --- a/client/src/session/remote/linux/session.cc +++ b/client/src/session/remote/linux/session.cc @@ -40,6 +40,7 @@ #include #include #include + #include using std::string; @@ -83,6 +84,9 @@ this->name += string(id,(sep - id)); this->name += "."; this->name += (sep+1); + + std::transform(this->name.begin(), this->name.end(), this->name.begin(),[](unsigned char c){ return std::tolower(c); }); + this->path = "/br/com/bb/tn3270/session"; this->interface = "br.com.bb.tn3270.session"; diff --git a/client/src/testprogram/testprogram.cc b/client/src/testprogram/testprogram.cc index 235352f..748cbc0 100644 --- a/client/src/testprogram/testprogram.cc +++ b/client/src/testprogram/testprogram.cc @@ -120,7 +120,9 @@ cout << endl << "[" << host.toString((unsigned int) 1, (unsigned int) 3,7) << "]" << endl; cout << endl << "[" << host.toString((int) 15, (int) 10) << "]" << endl; - host.disconnect(); + host.pfkey(3); + + // host.disconnect(); } catch(const std::exception &e) { diff --git a/server/src/core/linux/gobject.c b/server/src/core/linux/gobject.c index 452eb99..a45e423 100644 --- a/server/src/core/linux/gobject.c +++ b/server/src/core/linux/gobject.c @@ -113,11 +113,11 @@ void ipc3270_add_terminal_introspection(GString *introspection) { " " \ " " " " \ - " " \ + " " \ " " \ " " " " \ - " " \ + " " \ " " \ " " " " \ diff --git a/server/src/core/methods/action.c b/server/src/core/methods/action.c index bdc8346..44f97e4 100644 --- a/server/src/core/methods/action.c +++ b/server/src/core/methods/action.c @@ -45,3 +45,4 @@ int ipc3270_method_action(GObject *session, GVariant *request, GObject *response return 0; } + -- libgit2 0.21.2